summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorroot <root@eng-140.vyatta.com>2008-07-28 14:08:17 -0700
committerroot <root@eng-140.vyatta.com>2008-07-28 14:08:17 -0700
commit59494688f9e791179e0411d4ef9f1622376f22ea (patch)
tree6445baf44df19f4163c98de0f02ed8ee9e57267a /scripts
parent1ac0df0545fd2a467cc96a5b09cb6bb69e1430f6 (diff)
downloadvyatta-cfg-59494688f9e791179e0411d4ef9f1622376f22ea.tar.gz
vyatta-cfg-59494688f9e791179e0411d4ef9f1622376f22ea.zip
fix for bug 1130. disable ctrl-c during load command to prevent partial load.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-load-config.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/vyatta-load-config.pl b/scripts/vyatta-load-config.pl
index ee4a9c4..dfbf575 100755
--- a/scripts/vyatta-load-config.pl
+++ b/scripts/vyatta-load-config.pl
@@ -28,6 +28,8 @@ use IO::Prompt;
use Sys::Syslog qw(:standard :macros);
use VyattaConfigLoad;
+$SIG{'INT'} = 'IGNORE';
+
my $etcdir = $ENV{vyatta_sysconfdir};
my $sbindir = $ENV{vyatta_sbindir};
my $bootpath = $etcdir . "/config";