diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-01-14 18:14:47 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-01-14 18:14:47 -0800 |
commit | 784d147f611929787844c87f4e0428bb6a0b5708 (patch) | |
tree | a50bc7884b877fd6af90bfc30ee63d32bafe1dd4 /scripts | |
parent | 027fe0f526742e30d17835a62c271e9c1fc40f97 (diff) | |
download | vyatta-cfg-784d147f611929787844c87f4e0428bb6a0b5708.tar.gz vyatta-cfg-784d147f611929787844c87f4e0428bb6a0b5708.zip |
do config migration when loading a config file
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vyatta-load-config.pl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/vyatta-load-config.pl b/scripts/vyatta-load-config.pl index d011a65..be3c751 100755 --- a/scripts/vyatta-load-config.pl +++ b/scripts/vyatta-load-config.pl @@ -21,6 +21,9 @@ if (!($load_file =~ /^\//)) { $load_file = "$bootpath/$load_file"; } +# do config migration +system("$sbindir/vyatta_config_migrate.pl $load_file"); + print "Loading config file $load_file...\n"; my %cfg_hier = VyattaConfigLoad::loadConfigHierarchy($load_file); if (scalar(keys %cfg_hier) == 0) { |