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