mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-18 11:38:14 +01:00
Add an INTERFACE variable to ifupdown.sh
This commit is contained in:
parent
b9ee064284
commit
5ad06291c8
@ -37,6 +37,8 @@ if [ -f /etc/debian_version ]; then
|
|||||||
#
|
#
|
||||||
# Debian ifupdown system
|
# Debian ifupdown system
|
||||||
#
|
#
|
||||||
|
INTERFACE="$IFACE"
|
||||||
|
|
||||||
if [ "$MODE" = start ]; then
|
if [ "$MODE" = start ]; then
|
||||||
COMMAND=up
|
COMMAND=up
|
||||||
elif [ "$MODE" = stop ]; then
|
elif [ "$MODE" = stop ]; then
|
||||||
@ -54,7 +56,7 @@ elif [ -f /etc/SuSE-release ]; then
|
|||||||
#
|
#
|
||||||
# SuSE ifupdown system
|
# SuSE ifupdown system
|
||||||
#
|
#
|
||||||
IFACE="$2"
|
INTERFACE="$2"
|
||||||
|
|
||||||
case $0 in
|
case $0 in
|
||||||
*if-up.d*)
|
*if-up.d*)
|
||||||
@ -71,7 +73,7 @@ else
|
|||||||
#
|
#
|
||||||
# Assume RedHat/Fedora/CentOS/Foobar/...
|
# Assume RedHat/Fedora/CentOS/Foobar/...
|
||||||
#
|
#
|
||||||
IFACE="$1"
|
INTERFACE="$1"
|
||||||
|
|
||||||
case $0 in
|
case $0 in
|
||||||
*ifup*)
|
*ifup*)
|
||||||
@ -95,7 +97,7 @@ for PRODUCT in $PRODUCTS; do
|
|||||||
if [ -x $VARDIR/firewall ]; then
|
if [ -x $VARDIR/firewall ]; then
|
||||||
( . /usr/share/$PRODUCT/lib.base
|
( . /usr/share/$PRODUCT/lib.base
|
||||||
mutex_on
|
mutex_on
|
||||||
${VARDIR}/firewall -V0 $COMMAND $IFACE || echo_notdone
|
${VARDIR}/firewall -V0 $COMMAND $INTERFACE || echo_notdone
|
||||||
mutex_off
|
mutex_off
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user