aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-10-13 07:18:05 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-10-13 07:18:05 +0000
commit878e2cfa2d2e3e04ae9b06056363846dfd6da90a (patch)
tree6e00d20b87920b7932c9976533736341b27b08f4 /examples
parent97646e50dee99cee5782b2f7ce2bde2ba08aaa94 (diff)
downloadbusybox-w32-878e2cfa2d2e3e04ae9b06056363846dfd6da90a.tar.gz
busybox-w32-878e2cfa2d2e3e04ae9b06056363846dfd6da90a.tar.bz2
busybox-w32-878e2cfa2d2e3e04ae9b06056363846dfd6da90a.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. git-svn-id: svn://busybox.net/trunk/busybox@9414 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/udhcp/sample.bound3
-rwxr-xr-xexamples/udhcp/sample.renew3
-rw-r--r--examples/udhcp/simple.script3
3 files changed, 6 insertions, 3 deletions
diff --git a/examples/udhcp/sample.bound b/examples/udhcp/sample.bound
index 200352672..2a95d8b7d 100755
--- a/examples/udhcp/sample.bound
+++ b/examples/udhcp/sample.bound
@@ -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
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
diff --git a/examples/udhcp/simple.script b/examples/udhcp/simple.script
index a52a7f812..98ebc159f 100644
--- a/examples/udhcp/simple.script
+++ b/examples/udhcp/simple.script
@@ -22,8 +22,9 @@ case "$1" in
22 : 22 :
23 done 23 done
24 24
25 metric=0
25 for i in $router ; do 26 for i in $router ; do
26 route add default gw $i dev $interface 27 route add default gw $i dev $interface metric $((metric++))
27 done 28 done
28 fi 29 fi
29 30