7b1a366235
This patch updates shorewall-lite to current stable release 4.5.7 Please note: The new package shorewall-core 4.5.7 is required by this shorewall-lite version and perlbase-digest. Signed-off-by: Edy Corak <info@loenshotel.de> git-svn-id: svn://svn.openwrt.org/openwrt/packages@33796 3c298f89-4303-0410-b956-a3cf2f4a3e73
28 lines
487 B
Bash
28 lines
487 B
Bash
#!/bin/sh
|
|
#
|
|
# (C) 2009 Mika Ilmaranta <ilmis@nullnet.fi>
|
|
# (C) 2009 Tom Eastep <teastep@shorewall.net>
|
|
#
|
|
# License: GPLv2
|
|
#
|
|
|
|
STATE=${1}
|
|
DEVICE=${4}
|
|
|
|
if [ -f /usr/share/shorewall-lite/lib.base ]; then
|
|
VARDIR=/etc/shorewall-lite/state
|
|
STATEDIR=/etc/shorewall-lite
|
|
fi
|
|
|
|
[ -f ${STATEDIR}/vardir ] && . ${STATEDIR}/vardir
|
|
|
|
if [ ${STATE} = up ]; then
|
|
${VARDIR}/firewall enable ${DEVICE}
|
|
else
|
|
${VARDIR}/firewall disable ${DEVICE}
|
|
fi
|
|
|
|
/sbin/shorewall-lite show routing > /var/log/lsm
|
|
|
|
exit 0
|