2009-08-11 13:32:10 +00:00
|
|
|
#
|
2009-10-06 00:13:08 +00:00
|
|
|
# This script updates the grub.cfg file for GRUB2.
|
2009-08-11 13:32:10 +00:00
|
|
|
#
|
|
|
|
case "${ACTION}" in
|
|
|
|
pre)
|
|
|
|
;;
|
|
|
|
post)
|
2009-10-06 00:13:08 +00:00
|
|
|
if [ -x usr/sbin/grub-mkconfig ]; then
|
|
|
|
echo "Updating grub2 configuration file..."
|
|
|
|
usr/sbin/grub-mkconfig -o boot/grub/grub.cfg
|
|
|
|
[ $? -ne 0 ] && exit $?
|
2009-08-11 13:32:10 +00:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|