summaryrefslogtreecommitdiffstats
path: root/package/base-files/default/usr/share/udhcpc
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-01-16 19:16:20 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-01-16 19:16:20 +0000
commit0ccf2d8759b60479100612932611ac33e5d5fb50 (patch)
treea60fcb7135cbe5664545719ed5d301602060b39b /package/base-files/default/usr/share/udhcpc
parentd4c349192ae75c5a4f781a95a7fee3cb91c3575a (diff)
fix error messages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2996 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/default/usr/share/udhcpc')
-rwxr-xr-xpackage/base-files/default/usr/share/udhcpc/default.script5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/base-files/default/usr/share/udhcpc/default.script b/package/base-files/default/usr/share/udhcpc/default.script
index cef2c2ed2..42d3eaf0c 100755
--- a/package/base-files/default/usr/share/udhcpc/default.script
+++ b/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