File: fancontrol.postinst

package info (click to toggle)
lm-sensors 1%3A3.5.0-3
  • links: PTS
  • area: main
  • in suites: buster
  • size: 3,172 kB
  • sloc: perl: 6,419; ansic: 5,272; sh: 2,275; lex: 372; yacc: 296; makefile: 213
file content (23 lines) | stat: -rw-r--r-- 536 bytes parent folder | download | duplicates (6)
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
# postinst script for fancontrol
#
# see: dh_installdeb(1)
set -e

case "$1" in
    configure)
        # Remove shutdown and reboot links; this init script does not need them.
        if dpkg --compare-versions "$2" lt "1:3.1.1-5"; then
	    rm -f /etc/rc0.d/K[0-9][0-9]fancontrol /etc/rc1.d/K[0-9][0-9]fancontrol /etc/rc6.d/K[0-9][0-9]fancontrol
        fi
    ;;
    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

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

#DEBHELPER#