From 1aee3ff8bb2ee6bdd51b0b4f6bac388b24934f96 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 13 Oct 2004 07:18:05 +0000 Subject: 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. --- examples/udhcp/simple.script | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/udhcp/simple.script') 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 : done + metric=0 for i in $router ; do - route add default gw $i dev $interface + route add default gw $i dev $interface metric $((metric++)) done fi -- cgit v1.2.3