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.
This commit is contained in:
parent
0e020d1025
commit
1aee3ff8bb
3 changed files with 6 additions and 3 deletions
|
@ -15,9 +15,10 @@ then
|
|||
do :
|
||||
done
|
||||
|
||||
metric=0
|
||||
for i in $router
|
||||
do
|
||||
/sbin/route add default gw $i dev $interface
|
||||
/sbin/route add default gw $i dev $interface metric $((metric++))
|
||||
done
|
||||
fi
|
||||
|
||||
|
|
|
@ -15,9 +15,10 @@ then
|
|||
do :
|
||||
done
|
||||
|
||||
metric=0
|
||||
for i in $router
|
||||
do
|
||||
/sbin/route add default gw $i dev $interface
|
||||
/sbin/route add default gw $i dev $interface metric $((metric++))
|
||||
done
|
||||
fi
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue