summaryrefslogtreecommitdiff
path: root/system/grub2/update-grub
blob: 9f59590ef8253a600cd791c642829b377015648f (plain)
1
2
3
4
5
6
7
8
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 $@