summaryrefslogtreecommitdiff
path: root/etc/init.d
diff options
context:
space:
mode:
authorrbalocca <rbalocca@vyatta.com>2008-07-07 17:00:55 -0700
committerrbalocca <rbalocca@vyatta.com>2008-07-07 17:00:55 -0700
commit1277a4a911cf39e0e2200eea8ecbd483d1610f2f (patch)
treea773f2fc1e13b29167157ebd985476875ced5afd /etc/init.d
parent9178dcb68c092976f9bed29c13dbd70cb26de3a1 (diff)
downloadvyatta-cfg-1277a4a911cf39e0e2200eea8ecbd483d1610f2f.tar.gz
vyatta-cfg-1277a4a911cf39e0e2200eea8ecbd483d1610f2f.zip
Fix for bug http://bugzilla.vyatta.com/show_bug.cgi?id=3427
Diffstat (limited to 'etc/init.d')
-rwxr-xr-xetc/init.d/vyatta-ofr6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/init.d/vyatta-ofr b/etc/init.d/vyatta-ofr
index 104903e..92acf45 100755
--- a/etc/init.d/vyatta-ofr
+++ b/etc/init.d/vyatta-ofr
@@ -118,6 +118,12 @@ start ()
done
load_bootfile
chmod g-w,o-w /
+
+ ( [ -s /boot/grub/menu.lst ] &&
+ upgrade-from-grub-legacy &&
+ rm -f /boot/grub/menu.lst*
+ ) || true
+
log_end_msg $?
}