diff options
Diffstat (limited to 'system/grub2/update-grub')
-rw-r--r-- | system/grub2/update-grub | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/system/grub2/update-grub b/system/grub2/update-grub new file mode 100644 index 0000000000..9f59590ef8 --- /dev/null +++ b/system/grub2/update-grub @@ -0,0 +1,9 @@ +#!/bin/sh + +GRUB_MKCONFIG=$(which grub-mkconfig) + +if [ -e /boot/grub/grub.cfg ]; then + mv -n /boot/grub/grub.cfg /boot/grub/grub.cfg.old.$$ || exit 1 +fi + +$GRUB_MKCONFIG -o /boot/grub/grub.cfg $@ |