diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-05-13 21:58:08 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-05-13 21:58:08 +0000 |
commit | 41bff969b5ebf9e1f4e034c383a4fadc6bc8bfd9 (patch) | |
tree | 1cb3b6abeb0a8c45222ecb26a6664580bab85a72 /package | |
parent | ec138625b6e8277de21b0c958f2c44fcb5cd0c31 (diff) | |
download | upstream-41bff969b5ebf9e1f4e034c383a4fadc6bc8bfd9.tar.gz upstream-41bff969b5ebf9e1f4e034c383a4fadc6bc8bfd9.tar.bz2 upstream-41bff969b5ebf9e1f4e034c383a4fadc6bc8bfd9.zip |
Do not suppress routes if the router received on renew is the same (#138)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7215 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rwxr-xr-x | package/base-files/files/usr/share/udhcpc/default.script | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/usr/share/udhcpc/default.script b/package/base-files/files/usr/share/udhcpc/default.script index c723953566..f2099204e3 100755 --- a/package/base-files/files/usr/share/udhcpc/default.script +++ b/package/base-files/files/usr/share/udhcpc/default.script @@ -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 |