5
# Remove shutdown and reboot links; this init script does not need them.
6
if dpkg --compare-versions "$2" lt "1.0.4-5ubuntu2"; then
7
rm -f /etc/rc0.d/K21acpid /etc/rc6.d/K21acpid
5
# Remove old init.d links
6
if dpkg --compare-versions "$2" lt-nl "1.0.10-3"; then
7
rm -f /etc/rc1.d/K??acpid
10
if dpkg --compare-versions "$2" lt-nl "1.0.6-16"; then
11
rm -f /etc/rc[06].d/K??acpid
14
if dpkg --compare-versions "$2" lt "1.0.6-6"; then
15
rm -f /etc/rc1.d/K20acpid /etc/rc[2-5].d/S20acpid
10
18
HAL_NEEDS_RESTARTING=no
12
20
configure|reconfigure)
14
if [ -x /etc/init.d/hal ] && dpkg --compare-versions "$2" ge-nl 1.0.4-5ubuntu4 && [ -f /var/run/hald/hald.pid ]; then
21
# check whether the hal init script is present and hal seems running; we
22
# need to stop hal to grab /proc/acpi/event; when hal starts again, it will
23
# simply ignore this interface as long as acpid is installed; see
25
if [ -x /etc/init.d/hal ] && [ -f /var/run/hal/hald.pid ]; then
15
26
HAL_NEEDS_RESTARTING=yes
16
27
invoke-rc.d hal stop