]> git.proxmox.com Git - drbd-utils.git/blob - debian/drbd-utils.prerm
fix drbd.service, do not start/enable by default
[drbd-utils.git] / debian / drbd-utils.prerm
1 #!/bin/sh
2
3 # This script silently ignores the initscript return code if we remove
4 # or deconfigure the package or carefully pay attention to it if we
5 # upgrade the package.
6
7 # Cyril Bouthors <cyril@bouthors.org>
8 # Wed Feb 16 21:01:11 CET 2005
9
10 set -e
11
12 if [ -x "/etc/init.d/drbd" ]
13 then
14 case "$1" in
15 remove|deconfigure)
16 invoke-rc.d drbd stop || true
17 ;;
18
19 upgrade|failed-upgrade)
20 invoke-rc.d drbd stop
21 ;;
22
23 *)
24 echo "prerm called with unknown argument \`$1'" >&2
25 exit 0
26 ;;
27 esac
28 fi
29
30 #DEBHELPER#