diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2008-08-24 17:51:01 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2008-08-24 17:51:01 +0100 |
commit | 934dddf3614eae2b4f305f42583b070bdbd5bc86 (patch) | |
tree | ac09e4f59c7492451d8082effc8d44b17103dc5c /debian/prerm | |
parent | 88d2208221b5128c89d65a6539c2cbcbc1fdba6e (diff) | |
parent | d301872cbf032a56c946cb92fa11b511aff3f243 (diff) |
Merging Debian package tree.
Diffstat (limited to 'debian/prerm')
-rwxr-xr-x | debian/prerm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/prerm b/debian/prerm index 5272e273..8426ab3a 100755 --- a/debian/prerm +++ b/debian/prerm @@ -9,5 +9,9 @@ if [ "$1" = "upgrade" ]; then mv /usr/share/bitlbee/help.txt /usr/share/bitlbee/help.upgrading fi else - /etc/init.d/bitlbee stop || exit 0 + if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d bitblee stop || exit 0 + else + /etc/init.d/bitlbee stop || exit 0 + fi fi |