]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/initscripts/init.d/networking/any
Change the ip address removal at network stop
[ipfire-2.x.git] / src / initscripts / init.d / networking / any
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