diff --git a/debian/postinst b/debian/postinst index 14ab54f..4b5f6b0 100755 --- a/debian/postinst +++ b/debian/postinst @@ -4,7 +4,7 @@ set -e case "$1" in configure) - if [ -e /usr/sbin/update-grub2 ] ; then + if [ -e /usr/sbin/grub-mkconfig ] ; then GRUBDEFAULT="/etc/default/grub" if [ -e "$GRUBDEFAULT" ] ; then if (grep '^GRUB_BACKGROUND' "$GRUBDEFAULT" > /dev/null 2>&1) ; then @@ -13,8 +13,7 @@ configure) echo 'GRUB_BACKGROUND="/usr/share/blorand/blorand.png"' >> "$GRUBDEFAULT" fi fi - - /usr/sbin/update-grub2 + /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg fi cat /usr/share/blorand/vimrc.blorand | while read line ; do