[PATCH] ip route metric
Natanael Copa
natanael.copa at gmail.com
Tue Oct 7 08:36:30 UTC 2008
Hi,
Attatched patch lets you use the "metric" keyword when adding routes.
Useful for udhcp scripts:
metric=0
for gw in $router; do
ip route add default via $gw dev $interface metric $metric
metric=$(( $metric + 1 ))
done
-nc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iproute-metric.patch
Type: text/x-patch
Size: 933 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20081007/8dcf8db6/attachment-0002.bin
More information about the busybox
mailing list