Fix broken upstream init script, drop chroot stuff from default config; add debian...
[anytun.git] / debian / prerm
1 #!/bin/sh
2 # prerm script for anytun
3
4 set -e
5
6 if [ -x "/etc/init.d/anytun" ] && [ "$1" = remove ]; then
7   if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
8     invoke-rc.d anytun stop || true
9   else
10     /etc/init.d/anytun stop || true
11   fi
12 fi