File: postrm

package info (click to toggle)
kinect-audio-setup 0.5-1
  • links: PTS, VCS
  • area: contrib
  • in suites: bookworm, bullseye, buster, stretch
  • size: 220 kB
  • ctags: 34
  • sloc: ansic: 270; sh: 94; makefile: 69
file content (34 lines) | stat: -rw-r--r-- 657 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
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
# postrm script for kinect-audio-setup
#
# see: dh_installdeb(1)

set -e

case "$1" in
    purge)
        rm -rf /lib/firmware/kinect
        rmdir --ignore-fail-on-non-empty --parents /lib/firmware/ || true

        if [ -e /usr/share/debconf/confmodule ];
        then
            . /usr/share/debconf/confmodule
            db_purge
        fi
    ;;

    remove|upgrade|failed-upgrade|abort-upgrade|abort-install)
    ;;

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

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0