]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - config/rootfiles/core/149/update.sh
core149: add grub and install it at update
[ipfire-2.x.git] / config / rootfiles / core / 149 / update.sh
index b1dfa97c9a1f680630075ba06a56aacf3fc733b2..d7067a4cc922d1367b722d3a6063bd97e3fa9c31 100644 (file)
@@ -57,6 +57,11 @@ sed -i /var/spool/cron/root.orig \
        -e "s/GeoIP/location/"
 fcrontab -z
 
+# Install updated grub
+if [ -e /boot/grub/grub.cfg ]; then
+       /usr/bin/install-bootloader
+fi
+
 # This update needs a reboot...
 #touch /var/run/need_reboot