]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Change the ip address removal at network stop
authorArne Fitzenreiter <arne_f@ipfire.org>
Tue, 19 Aug 2008 14:09:57 +0000 (16:09 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 19 Aug 2008 14:09:57 +0000 (16:09 +0200)
replace ifconfig with ip link at red for ATM-Bridge

src/initscripts/init.d/networking/any
src/initscripts/init.d/networking/red

index dbd1cb22e885862f33b8024b1372b27c651b9a48..b88d21ecf783999b11c6095cba30ebf5f24a7d70 100644 (file)
@@ -86,8 +86,8 @@ case "${1}" in
                ;;
 
        stop)
-               boot_mesg "Removing IPv4 address ${ADDRESS} from the ${DEVICE} interface..."
-               ip addr del ${args} dev ${DEVICE}
+               boot_mesg "Removing IPv4 addresses from the ${DEVICE} interface..."
+               ip addr flush dev ${DEVICE}
                evaluate_retval
 
                # Disable vnstat collection
index 9bc848228ae5ada2597b41425f134f3a144e5ca9..57981a7e2368c36082775ee8aac9b5f10649e33c 100644 (file)
@@ -194,7 +194,7 @@ case "${1}" in
                                boot_mesg "Createing ATM-Bridge as $PPP_NIC ..."
                                br2684ctl -c0 -e${ENCAP} -a0.${VPI}.${VCI} >/dev/null 2>&1 &
                                sleep 1
-                               ifconfig $PPP_NIC up
+                               ip link set ${PPP_NIC} up
                                TYPE="pppoe"
                        fi
                        if [ "$TYPE" == "pppoe" ]; then                 
@@ -334,8 +334,8 @@ case "${1}" in
                        ip route del default via ${GATEWAY} >/dev/null 2>&1
                        echo_ok
                        if [ "$DEVICE" != "${GREEN_DEV}" ]; then
-                               boot_mesg "Removing IPv4 address ${ADDRESS} from the ${DEVICE} interface..."
-                               ip addr del ${args} dev ${DEVICE}
+                               boot_mesg "Removing IPv4 addresses from the ${DEVICE} interface..."
+                               ip addr flush dev ${DEVICE}
                                evaluate_retval
                        fi
                        run_subdir ${rc_base}/init.d/networking/red.down/