Debian Codegraph @

debian/systemd-sysv.postinst

raw
1 #!/bin/sh
2
3 set -e
4
5 # update grub on first install, so that the alternative init system boot
6 # entries get updated
7 if [ "$1" = configure ] && [ -z "$2" ] && [ -e /boot/grub/grub.cfg ] && command -v update-grub >/dev/null; then
8 update-grub || true
9 fi
10
11 #DEBHELPER#