File: prerm

package info (click to toggle)
apcd 0.6a.nr-7
  • links: PTS
  • area: main
  • in suites: potato
  • size: 376 kB
  • ctags: 143
  • sloc: ansic: 1,166; sh: 130; makefile: 74
file content (9 lines) | stat: -rw-r--r-- 221 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
#!/bin/sh -e

if ! /etc/init.d/apcd stop; then
 echo -e "\nApcd was not correctly stopped or not running. Skipping."
fi

if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/apcd ]; then
  rm -f /usr/doc/apcd
fi