aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/udhcp/sample.bound3
-rwxr-xr-xexamples/udhcp/sample.renew3
-rw-r--r--examples/udhcp/simple.script3
3 files changed, 6 insertions, 3 deletions
diff --git a/examples/udhcp/sample.bound b/examples/udhcp/sample.bound
index 200352672..2a95d8b7d 100755
--- a/examples/udhcp/sample.bound
+++ b/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
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
diff --git a/examples/udhcp/simple.script b/examples/udhcp/simple.script
index a52a7f812..98ebc159f 100644
--- a/examples/udhcp/simple.script
+++ b/examples/udhcp/simple.script
@@ -22,8 +22,9 @@ case "$1" in
:
done
+ metric=0
for i in $router ; do
- route add default gw $i dev $interface
+ route add default gw $i dev $interface metric $((metric++))
done
fi