diff options
Diffstat (limited to 'scripts/vyatta-save-config.pl')
-rwxr-xr-x | scripts/vyatta-save-config.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/vyatta-save-config.pl b/scripts/vyatta-save-config.pl index 4af5d97..178eff7 100755 --- a/scripts/vyatta-save-config.pl +++ b/scripts/vyatta-save-config.pl @@ -23,6 +23,7 @@ use strict; use lib "/opt/vyatta/share/perl5"; use Vyatta::ConfigOutput; use File::Sync qw(fsync); +use Vyatta::Misc qw(get_short_config_path); my $etcdir = "/opt/vyatta/etc"; my $bootpath = $etcdir . "/config"; @@ -76,7 +77,9 @@ if ($mode eq 'local' and !($save_file =~ /^\//)) { } my $version_str = `/opt/vyatta/sbin/vyatta_current_conf_ver.pl`; -print "Saving configuration to '$save_file'...\n"; +# when presenting to users, show shortened /config path +my $shortened_save_file = get_short_config_path($save_file); +print "Saving configuration to '$shortened_save_file'...\n"; my $save; if ($mode eq 'local') { |