File: drbd0.7-utils.prerm

package info (click to toggle)
drbd 0.7.10-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,324 kB
  • ctags: 1,787
  • sloc: ansic: 14,123; perl: 2,344; sh: 1,686; makefile: 593; yacc: 426
file content (30 lines) | stat: -rw-r--r-- 535 bytes parent folder | download
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
26
27
28
29
30
#!/bin/sh

# This script silently ignores the initscript return code if we remove
# or deconfigure the package or carefully pay attention to it if we
# upgrade the package.

# Cyril Bouthors <cyril@bouthors.org>
# Wed Feb 16 21:01:11 CET 2005

set -e

if [ -x "/etc/init.d/drbd" ]
then
    case "$1" in
	remove|deconfigure)
	    /etc/init.d/drbd stop || true
	    ;;

	upgrade|failed-upgrade)
	    /etc/init.d/drbd stop
	    ;;

	*)
	    echo "prerm called with unknown argument \`$1'" >&2
	    exit 0
	    ;;
    esac
fi

#DEBHELPER#