Fixes for Shorewall-init

- Enable at boot on debian
- Clear environment for each product
This commit is contained in:
Tom Eastep 2012-05-31 19:15:23 -07:00
parent de184b32bc
commit 02006288b0
2 changed files with 9 additions and 6 deletions

View File

@ -193,7 +193,10 @@ for PRODUCT in $PRODUCTS; do
#
save_vardir=${VARDIR}
if [ -x $VARDIR/$PRODUCT/firewall ]; then
( . ${SHAREDIR}/shorewall/lib.base
( g_program=$PRODUCT
g_readrc=
. ${SHAREDIR}/shorewall/lib.base
mutex_on
${VARDIR}/firewall -V0 $COMMAND $INTERFACE || echo_notdone
mutex_off

View File

@ -382,7 +382,7 @@ if [ -z "$DESTDIR" ]; then
if [ -n "$first_install" ]; then
if [ $HOST = debian ]; then
update-rc.d shorewall-init defaults
update-rc.d shorewall-init enable
echo "Shorewall Init will start automatically at boot"
else