forked from extern/shorewall_code
Fixes for Shorewall-init
- Enable at boot on debian - Clear environment for each product
This commit is contained in:
parent
de184b32bc
commit
02006288b0
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user