mirror of
https://gitlab.com/shorewall/code.git
synced 2025-04-09 01:38:43 +02:00
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}
|
save_vardir=${VARDIR}
|
||||||
if [ -x $VARDIR/$PRODUCT/firewall ]; then
|
if [ -x $VARDIR/$PRODUCT/firewall ]; then
|
||||||
( . ${SHAREDIR}/shorewall/lib.base
|
( g_program=$PRODUCT
|
||||||
|
g_readrc=
|
||||||
|
|
||||||
|
. ${SHAREDIR}/shorewall/lib.base
|
||||||
mutex_on
|
mutex_on
|
||||||
${VARDIR}/firewall -V0 $COMMAND $INTERFACE || echo_notdone
|
${VARDIR}/firewall -V0 $COMMAND $INTERFACE || echo_notdone
|
||||||
mutex_off
|
mutex_off
|
||||||
|
@ -382,7 +382,7 @@ if [ -z "$DESTDIR" ]; then
|
|||||||
if [ -n "$first_install" ]; then
|
if [ -n "$first_install" ]; then
|
||||||
if [ $HOST = debian ]; 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"
|
echo "Shorewall Init will start automatically at boot"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user