summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-12-04 13:38:14 -0800
committerStig Thormodsrud <stig@vyatta.com>2010-12-04 13:38:14 -0800
commit84f9a63744ba58e9fec627e157eff9720a4de1ce (patch)
tree5cac07a3819c9e210121a37db9f2899e8d5c2c21 /scripts
parentddb1ff7b4bf5431f06fa71ab0cd1fad67f9eb303 (diff)
downloadvyatta-cfg-quagga-84f9a63744ba58e9fec627e157eff9720a4de1ce.tar.gz
vyatta-cfg-quagga-84f9a63744ba58e9fec627e157eff9720a4de1ce.zip
Set up commit-revisions if configured after init-floppy.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/init-floppy9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/init-floppy b/scripts/init-floppy
index 7897b685..16e12915 100755
--- a/scripts/init-floppy
+++ b/scripts/init-floppy
@@ -105,6 +105,15 @@ echo "$bind___notice"
echo "$saved__notice"
+if cli-shell-api existsActive system config-management commit-revisions ; then
+ val=`cli-shell-api returnActiveValue \
+ system config-management commit-revisions`
+ if [ $? == "0" ] ; then
+ ${vyatta_sbindir}/vyatta-config-mgmt.pl \
+ --action=update-revs --revs=$val
+ fi
+fi
+
# Local Variables:
# mode: shell-script
# sh-indentation: 4