File: postinst

package info (click to toggle)
intel-acm 20210710-2
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm, forky, sid, trixie
  • size: 2,240 kB
  • sloc: python: 66; sh: 30; makefile: 7
file content (23 lines) | stat: -rw-r--r-- 516 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
set -e

case "$1" in
    configure)
        # Be careful to avoid bugs like https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851893
        if [ -e /boot/grub/grub.cfg ] && command -v update-grub2 > /dev/null; then
            update-grub2 || echo "Updating grub failed, report success anyway"
        fi
        ;;
    
    abort-upgrade|abort-remove|abort-deconfigure)
        ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
        ;;
esac

#DEBHELPER#

exit 0