forked from extern/shorewall_code
60beb2f1d2
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7501 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
22 lines
438 B
Bash
22 lines
438 B
Bash
#!/bin/sh -e
|
|
|
|
case "$1" in
|
|
# do not stop the firewall during an upgrade
|
|
remove)
|
|
if [ -x "/usr/sbin/invoke-rc.d" ]
|
|
then
|
|
invoke-rc.d shorewall-lite stop
|
|
else
|
|
/etc/init.d/shorewall-lite stop
|
|
fi
|
|
;;
|
|
upgrade|deconfigure|failed-upgrade)
|
|
;;
|
|
*)
|
|
echo "prerem called with unknown argument \`$1\'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER#
|