summaryrefslogtreecommitdiff
path: root/scripts/install/install-image-existing
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2011-08-05 20:55:40 -0700
committerStephen Hemminger <shemminger@vyatta.com>2011-08-05 20:55:40 -0700
commit48f3a8e8c8b19d1d96e409d2f57872b659b85331 (patch)
tree135351c5628b3b16851758ad6c1a06b8959eb6c2 /scripts/install/install-image-existing
parent8b49f93b06cfe494182c533dc00499abc8452660 (diff)
parent5c9468830faaad8976bf9739d250363aef171f40 (diff)
downloadvyatta-cfg-quagga-48f3a8e8c8b19d1d96e409d2f57872b659b85331.tar.gz
vyatta-cfg-quagga-48f3a8e8c8b19d1d96e409d2f57872b659b85331.zip
Merge branch 'oxnard' of fiji.vyatta.com:/git/vyatta-cfg-system into oxnard
Diffstat (limited to 'scripts/install/install-image-existing')
-rwxr-xr-xscripts/install/install-image-existing5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/install/install-image-existing b/scripts/install/install-image-existing
index 94a0033b..7c75b35b 100755
--- a/scripts/install/install-image-existing
+++ b/scripts/install/install-image-existing
@@ -183,6 +183,8 @@ fi
space_needed_configdata=`du -s ${VYATTA_NEW_CFG_DIR} | awk '{ print $1 }'`
space_needed_config=$(($space_needed_configdata - $space_needed_data))
+DEMO_MIGRATE_SCRIPT=/opt/vyatta/sbin/demo-to-vse.pl
+
# save current config dir if needed
if [ $space_avail -gt $space_needed_configdata ]; then
resp=''
@@ -198,6 +200,9 @@ if [ $space_avail -gt $space_needed_configdata ]; then
-exec cp '-a' '{}' "$ndir/" ';'
chgrp -R vyattacfg $ndir
chmod -R 775 $ndir
+ if [ -x $DEMO_MIGRATE_SCRIPT ]; then
+ $DEMO_MIGRATE_SCRIPT $ndir/config.boot
+ fi
fi
done
else