1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-11-18 22:43:53 +01:00

Do not suppress routes if the router received on renew is the same (#138)

SVN-Revision: 7215
This commit is contained in:
Florian Fainelli 2007-05-13 21:58:08 +00:00
parent 610421f87a
commit 3e9c0379ba

@ -28,7 +28,7 @@ case "$1" in
netmask ${subnet:-255.255.255.0} \
broadcast ${broadcast:-+}
if [ -n "$router" ] ; then
if [ "$router" != "$(route -n | grep '^0.0.0.0' | grep $interface | awk '{ print $2 }')" ] ; then
echo "deleting routers"
while route del default gw 0.0.0.0 dev $interface >&- 2>&- ; do :; done