File: postrm

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 (24 lines) | stat: -rw-r--r-- 538 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
24
#!/bin/sh
set -e

case "$1" in
    remove|upgrade)
        # 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
        ;;
    
    purge|failed-upgrade|abort-install|abort-upgrade|disappear)
        ;;
    
    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 1
        ;;
esac

#DEBHELPER#

exit 0