diff options
author | Tom Grennan <tgrennan@io.vyatta.com> | 2007-12-13 18:24:14 -0800 |
---|---|---|
committer | Tom Grennan <tgrennan@io.vyatta.com> | 2007-12-13 18:24:14 -0800 |
commit | ffe748d96a12350760eaf8b199b4857c72f664c6 (patch) | |
tree | c36b6309fac295d6264ae570d7e3ec19d7410b93 /scripts/vyatta-load-config.pl | |
parent | 1d92ea297e4b28b292b7c735b2e9d1308156e285 (diff) | |
download | vyatta-cfg-ffe748d96a12350760eaf8b199b4857c72f664c6.tar.gz vyatta-cfg-ffe748d96a12350760eaf8b199b4857c72f664c6.zip |
assume bootfile_path is /opt/vyatta/etc/config
Diffstat (limited to 'scripts/vyatta-load-config.pl')
-rwxr-xr-x | scripts/vyatta-load-config.pl | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/scripts/vyatta-load-config.pl b/scripts/vyatta-load-config.pl index a6f037a..d011a65 100755 --- a/scripts/vyatta-load-config.pl +++ b/scripts/vyatta-load-config.pl @@ -8,11 +8,7 @@ use VyattaConfigLoad; my $etcdir = $ENV{vyatta_sysconfdir}; my $sbindir = $ENV{vyatta_sbindir}; -my $bootpath = ''; -if (-r "$etcdir/bootfile_path") { - $bootpath = `cat $etcdir/bootfile_path`; -} -$bootpath =~ s/\/[^\/]+$//; +my $bootpath = $etcdir . "/config"; if ($#ARGV != 0) { print "Usage: load <config_file_name>\n"; |