diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-03-26 12:32:24 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-03-26 12:32:24 -0700 |
commit | 76aae0216871f8c4f3b1c2ebad6761e67ee3e799 (patch) | |
tree | dc72732c1de11539623e71a9c81fc4ef58d87b89 /etc | |
parent | dedc3083522c70de84db4d2e7bef21998debd18f (diff) | |
download | vyatta-cfg-76aae0216871f8c4f3b1c2ebad6761e67ee3e799.tar.gz vyatta-cfg-76aae0216871f8c4f3b1c2ebad6761e67ee3e799.zip |
fix for bug 3032:
* rename pre-glendale start-up config.
* warn user when loading a pre-glendale config.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/init.d/vyatta-ofr | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/init.d/vyatta-ofr b/etc/init.d/vyatta-ofr index b1e7a69..776aaf4 100755 --- a/etc/init.d/vyatta-ofr +++ b/etc/init.d/vyatta-ofr @@ -66,6 +66,11 @@ have_rl_system () { # if necessary, provide initial config init_bootfile () { + if [ -f $BOOTFILE ] && grep -q '/\*XORP Configuration File, v1.0\*/' \ + $BOOTFILE >&/dev/null; then + CURTIME=$(date +%F-%H%M%S) + mv $BOOTFILE $BOOTFILE.pre-glendale.$CURTIME + fi if [ ! -f $BOOTFILE ] ; then if [ -f $vyatta_sysconfdir/config.boot.default ]; then cp $vyatta_sysconfdir/config.boot.default $BOOTFILE |