1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

fix error messages

git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2996 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mbm
2006-01-16 19:16:20 +00:00
parent d4c349192a
commit 0ccf2d8759
2 changed files with 3 additions and 7 deletions

View File

@@ -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