ff782d5685
--HG-- extra : convert_revision : f9530cb7462f178464c4fd88e11a7eb78c370ba5
14 lines
262 B
Text
14 lines
262 B
Text
#
|
|
# This script updates the grub.cfg file for GRUB2.
|
|
#
|
|
case "${ACTION}" in
|
|
pre)
|
|
;;
|
|
post)
|
|
if [ -x usr/sbin/grub-mkconfig ]; then
|
|
echo "Updating grub2 configuration file..."
|
|
usr/sbin/grub-mkconfig -o boot/grub/grub.cfg
|
|
[ $? -ne 0 ] && exit $?
|
|
fi
|
|
;;
|
|
esac
|