From ecb4afc3b8c0ef9b73ed262db5bd9cabb82b44ce Mon Sep 17 00:00:00 2001 From: mbm Date: Mon, 16 Jan 2006 19:16:20 +0000 Subject: fix error messages git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2996 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- openwrt/package/base-files/default/usr/share/udhcpc/default.script | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'openwrt/package/base-files/default/usr/share/udhcpc/default.script') diff --git a/openwrt/package/base-files/default/usr/share/udhcpc/default.script b/openwrt/package/base-files/default/usr/share/udhcpc/default.script index cef2c2ed2..42d3eaf0c 100755 --- a/openwrt/package/base-files/default/usr/share/udhcpc/default.script +++ b/openwrt/package/base-files/default/usr/share/udhcpc/default.script @@ -28,8 +28,9 @@ case "$1" in 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 ; do :; done + while route del default gw 0.0.0.0 dev $interface 2>&- ; do + echo "removing old default route" + done for i in $router ; do route add default gw $i dev $interface done -- cgit v1.2.3