File: prerm

package info (click to toggle)
rbootd 3.0
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 216 kB
  • sloc: ansic: 1,654; sh: 119; makefile: 105
file content (21 lines) | stat: -rw-r--r-- 454 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
#!/bin/sh

# pre remove script for Debian GNU/Linux rbootd package

set -e

if which invoke-rc.d >/dev/null 2>&1; then
  invoke-rc.d rbootd stop
else
  /etc/init.d/rbootd stop
fi

## Remove the local files dir if emtpy -- leave alone o/w
test ! -d /usr/local/lib/rbootd || rmdir /usr/local/lib/rbootd || true


## Remove the old doc directory
if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/rbootd ]; then
        rm -f /usr/doc/rbootd
fi