File: postrm

package info (click to toggle)
tboot 1.10.5-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 6,020 kB
  • sloc: ansic: 56,029; python: 6,595; perl: 2,303; sh: 455; asm: 442; makefile: 377
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