aboutsummaryrefslogtreecommitdiff
path: root/examples/udhcp/sample.renew
diff options
context:
space:
mode:
Diffstat (limited to 'examples/udhcp/sample.renew')
-rwxr-xr-xexamples/udhcp/sample.renew3
1 files changed, 2 insertions, 1 deletions
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
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