aboutsummaryrefslogtreecommitdiff
path: root/examples/udhcp/sample.renew
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-10-13 07:18:05 +0000
committerEric Andersen <andersen@codepoet.org>2004-10-13 07:18:05 +0000
commit1aee3ff8bb2ee6bdd51b0b4f6bac388b24934f96 (patch)
tree6e00d20b87920b7932c9976533736341b27b08f4 /examples/udhcp/sample.renew
parent0e020d10257a7f1e4cd526eb6c49ba67a442ba85 (diff)
downloadbusybox-w32-1aee3ff8bb2ee6bdd51b0b4f6bac388b24934f96.tar.gz
busybox-w32-1aee3ff8bb2ee6bdd51b0b4f6bac388b24934f96.tar.bz2
busybox-w32-1aee3ff8bb2ee6bdd51b0b4f6bac388b24934f96.zip
Simon Poole writes:
Erik, Attached is a patch for the udhcpc sample scripts, to correct the order in which routers are applied if the DHCP server provides more than one (as per section 3.5 of RFC2132). Apologies for not being on the mailing list and thanks for your continued efforts. Simon.
Diffstat (limited to 'examples/udhcp/sample.renew')
-rwxr-xr-xexamples/udhcp/sample.renew3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/udhcp/sample.renew b/examples/udhcp/sample.renew
index c953e9758..842bafe91 100755
--- a/examples/udhcp/sample.renew
+++ b/examples/udhcp/sample.renew
@@ -15,9 +15,10 @@ then
15 do : 15 do :
16 done 16 done
17 17
18 metric=0
18 for i in $router 19 for i in $router
19 do 20 do
20 /sbin/route add default gw $i dev $interface 21 /sbin/route add default gw $i dev $interface metric $((metric++))
21 done 22 done
22fi 23fi
23 24