2009-08-11 15:32:10 +02:00
|
|
|
#
|
2009-10-06 02:13:08 +02:00
|
|
|
# This script updates the grub.cfg file for GRUB2.
|
2009-08-11 15:32:10 +02:00
|
|
|
#
|
|
|
|
case "${ACTION}" in
|
|
|
|
pre)
|
|
|
|
;;
|
|
|
|
post)
|
2009-10-06 02:13:08 +02: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 15:32:10 +02:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|