summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/dmvpn-config.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/dmvpn-config.pl b/scripts/dmvpn-config.pl
index 5562a7c..d482432 100755
--- a/scripts/dmvpn-config.pl
+++ b/scripts/dmvpn-config.pl
@@ -485,6 +485,11 @@ if (!(defined($config_file) && ( $config_file ne '' ))) {
write_config( $genout, $config_file);
+# Now exit, if 'vpn ipsec' has been deleted.
+if ( !$vcVPN->exists('ipsec') ) {
+ exit(0);
+}
+
my $update_interval = $vcVPN->returnValue("ipsec auto-update");
my $update_interval_orig = $vcVPN->returnOrigValue("ipsec auto-update");
$update_interval_orig = 0 if !defined($update_interval_orig);