mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-21 00:12:58 +02:00
Change the ip address removal at network stop
replace ifconfig with ip link at red for ATM-Bridge
This commit is contained in:
@@ -86,8 +86,8 @@ case "${1}" in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
stop)
|
stop)
|
||||||
boot_mesg "Removing IPv4 address ${ADDRESS} from the ${DEVICE} interface..."
|
boot_mesg "Removing IPv4 addresses from the ${DEVICE} interface..."
|
||||||
ip addr del ${args} dev ${DEVICE}
|
ip addr flush dev ${DEVICE}
|
||||||
evaluate_retval
|
evaluate_retval
|
||||||
|
|
||||||
# Disable vnstat collection
|
# Disable vnstat collection
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ case "${1}" in
|
|||||||
boot_mesg "Createing ATM-Bridge as $PPP_NIC ..."
|
boot_mesg "Createing ATM-Bridge as $PPP_NIC ..."
|
||||||
br2684ctl -c0 -e${ENCAP} -a0.${VPI}.${VCI} >/dev/null 2>&1 &
|
br2684ctl -c0 -e${ENCAP} -a0.${VPI}.${VCI} >/dev/null 2>&1 &
|
||||||
sleep 1
|
sleep 1
|
||||||
ifconfig $PPP_NIC up
|
ip link set ${PPP_NIC} up
|
||||||
TYPE="pppoe"
|
TYPE="pppoe"
|
||||||
fi
|
fi
|
||||||
if [ "$TYPE" == "pppoe" ]; then
|
if [ "$TYPE" == "pppoe" ]; then
|
||||||
@@ -334,8 +334,8 @@ case "${1}" in
|
|||||||
ip route del default via ${GATEWAY} >/dev/null 2>&1
|
ip route del default via ${GATEWAY} >/dev/null 2>&1
|
||||||
echo_ok
|
echo_ok
|
||||||
if [ "$DEVICE" != "${GREEN_DEV}" ]; then
|
if [ "$DEVICE" != "${GREEN_DEV}" ]; then
|
||||||
boot_mesg "Removing IPv4 address ${ADDRESS} from the ${DEVICE} interface..."
|
boot_mesg "Removing IPv4 addresses from the ${DEVICE} interface..."
|
||||||
ip addr del ${args} dev ${DEVICE}
|
ip addr flush dev ${DEVICE}
|
||||||
evaluate_retval
|
evaluate_retval
|
||||||
fi
|
fi
|
||||||
run_subdir ${rc_base}/init.d/networking/red.down/
|
run_subdir ${rc_base}/init.d/networking/red.down/
|
||||||
|
|||||||
Reference in New Issue
Block a user