slackbuilds_ponce/system/grub2/update-grub
crocket 661367a458 system/grub2: Added update-grub script.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
2013-02-14 00:26:49 -06:00

9 lines
197 B
Bash

#!/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 $@