summaryrefslogtreecommitdiff
path: root/scripts/vyatta-save-config.pl
diff options
context:
space:
mode:
authorrbalocca <rbalocca@fugazi.vyatta.com>2007-12-18 14:18:24 -0800
committerrbalocca <rbalocca@fugazi.vyatta.com>2007-12-18 14:18:24 -0800
commit64a8cfa9effac219e51498c3b8ef43437ad0396a (patch)
treefb11fa4d01b3dbe1f0f60e838b4ec450cbf31a64 /scripts/vyatta-save-config.pl
parent65db98116efa3c311c798f05f4f6ec97e9b6d643 (diff)
parent7966b8cf00e08548447e551a3fcfde40aa06cc59 (diff)
downloadvyatta-cfg-64a8cfa9effac219e51498c3b8ef43437ad0396a.tar.gz
vyatta-cfg-64a8cfa9effac219e51498c3b8ef43437ad0396a.zip
Merge branch 'master' into glendale
Diffstat (limited to 'scripts/vyatta-save-config.pl')
-rwxr-xr-xscripts/vyatta-save-config.pl9
1 files changed, 2 insertions, 7 deletions
diff --git a/scripts/vyatta-save-config.pl b/scripts/vyatta-save-config.pl
index 26b8eec..bad7c45 100755
--- a/scripts/vyatta-save-config.pl
+++ b/scripts/vyatta-save-config.pl
@@ -5,19 +5,14 @@ use lib "/opt/vyatta/share/perl5/";
use VyattaConfigOutput;
my $etcdir = "/opt/vyatta/etc";
-my $bootfile = '';
-if (-r "$etcdir/bootfile_path") {
- $bootfile = `cat $etcdir/bootfile_path`;
-}
-my $bootpath = $bootfile;
-$bootpath =~ s/\/[^\/]+$//;
+my $bootpath = $etcdir . "/config";
+my $save_file = $bootpath . "/config.boot";
if ($#ARGV > 0) {
print "Usage: save [config_file_name]\n";
exit 1;
}
-my $save_file = "$bootfile";
if (defined($ARGV[0])) {
$save_file = $ARGV[0];
if (!($save_file =~ /^\//)) {