File: postrm

package info (click to toggle)
pmud 0.10-8
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 400 kB
  • ctags: 257
  • sloc: ansic: 2,984; sh: 486; tcl: 290; makefile: 103; perl: 35
file content (25 lines) | stat: -rw-r--r-- 341 bytes parent folder | download | duplicates (4)
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
#! /bin/sh
set -e

# paranoia
if [ -f /var/run/pmud.pid ]; then
    if [ -x /usr/sbin/invoke-rc.d ]
    then
	invoke-rc.d pmud stop
    else
	/etc/init.d/pmud stop
    fi
fi

if [ -p /etc/power/apm ]; then
	rm -f /etc/power/apm
fi

if [ "$1" = "purge" ]; then
  update-rc.d -f pmud remove
  rm -f /etc/power/pwrctl*
fi
 
#DEBHELPER#

exit 0