From 45b1f46e45a26af4154766be9c472dcf77845057 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Sun, 17 Feb 2008 15:28:40 -0800 Subject: Fix 2838 Clearing VPN process starts VPN, even if not configured --- scripts/vpn-config.pl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts/vpn-config.pl') diff --git a/scripts/vpn-config.pl b/scripts/vpn-config.pl index 561ebe2..dc5ed95 100755 --- a/scripts/vpn-config.pl +++ b/scripts/vpn-config.pl @@ -718,6 +718,12 @@ if ($vcVPN->exists('ipsec')) { } } } else { + # + # remove any previous config lines, so that when "clear vpn ipsec-process" + # is called it won't find the vyatta keyword and therefore will not try + # to start the ipsec process. + # + $genout = ''; $genout .= "# No VPN configuration exists.\n"; $genout_secrets .= "# No VPN configuration exists.\n"; } -- cgit v1.2.3