diff options
Diffstat (limited to 'debian/prerm')
-rwxr-xr-x | debian/prerm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/prerm b/debian/prerm new file mode 100755 index 0000000..9ddebb7 --- /dev/null +++ b/debian/prerm @@ -0,0 +1,12 @@ +#!/bin/sh +# prerm script for rhdropbox + +set -e + +if [ -x "/etc/init.d/rhdropbox" ] && [ "$1" = remove ]; then + if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then + invoke-rc.d rhdropbox stop || true + else + /etc/init.d/rhdropbox stop || true + fi +fi |