[pkg-dhcp-devel] Bug#629632: Corrected solution

Németh Csaba csaba.nemeth at it-sense.hu
Wed Jun 8 10:49:23 UTC 2011


Corrected solution

IF_METRIC=1
for router in $new_routers; do
 metric_arg="metric $IF_METRIC"
 route add default dev $interface gw $router $metric_arg
 IF_METRIC=$(( $IF_METRIC+1 ))
done





More information about the pkg-dhcp-devel mailing list