From 46f70be05ae164b7ec8bfe89c057fa4e99f58128 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sun, 13 May 2007 22:09:13 +0000 Subject: [PATCH] Backport udhcpc fix to kamikaze_pre1 SVN-Revision: 7216 --- package/base-files/files/usr/share/udhcpc/default.script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/files/usr/share/udhcpc/default.script b/package/base-files/files/usr/share/udhcpc/default.script index c723953566..3de1de6463 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 -- 2.30.2