summaryrefslogtreecommitdiff
path: root/scripts/vpn-config.pl
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2008-02-17 15:28:40 -0800
committerStig Thormodsrud <stig@vyatta.com>2008-02-17 15:28:40 -0800
commit45b1f46e45a26af4154766be9c472dcf77845057 (patch)
tree0e3af1eec0f7abb9f75bf17c6b26a05b0d565f35 /scripts/vpn-config.pl
parent1fbac2a0fa2ff7a8593590ba2c80b1aa29a5f386 (diff)
downloadvyatta-cfg-vpn-45b1f46e45a26af4154766be9c472dcf77845057.tar.gz
vyatta-cfg-vpn-45b1f46e45a26af4154766be9c472dcf77845057.zip
Fix 2838 Clearing VPN process starts VPN, even if not configured
Diffstat (limited to 'scripts/vpn-config.pl')
-rwxr-xr-xscripts/vpn-config.pl6
1 files changed, 6 insertions, 0 deletions
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";
}