summaryrefslogtreecommitdiff
path: root/release/src/router/busybox/examples/udhcp/sample.renew
diff options
context:
space:
mode:
Diffstat (limited to 'release/src/router/busybox/examples/udhcp/sample.renew')
-rwxr-xr-xrelease/src/router/busybox/examples/udhcp/sample.renew3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/src/router/busybox/examples/udhcp/sample.renew b/release/src/router/busybox/examples/udhcp/sample.renew
index c953e975..842bafe9 100755
--- a/release/src/router/busybox/examples/udhcp/sample.renew
+++ b/release/src/router/busybox/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