File: acpi-support.postinst

package info (click to toggle)
acpi-support 0.142-6
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 788 kB
  • ctags: 14
  • sloc: sh: 1,068; ansic: 131; makefile: 33
file content (23 lines) | stat: -rw-r--r-- 531 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)
                invoke-rc.d --quiet acpid restart > /dev/null || true
                ;;
        *)
                ;;
esac

# Remove shutdown and reboot links; this init script does not need them.
if [ -n "$2" ] && dpkg --compare-versions "$2" lt "0.86"; then
	rm -f /etc/rc0.d/K20acpi-support /etc/rc6.d/K20acpi-support
fi

# vbesave got removed
if [ -n "$2" ] && dpkg --compare-versions "$2" lt "0.122-1"; then
	update-rc.d vbesave remove >/dev/null || exit $?
fi

#DEBHELPER#