aboutsummaryrefslogtreecommitdiff
path: root/examples/udhcp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/udhcp')
-rwxr-xr-xexamples/udhcp/simple.script3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/udhcp/simple.script b/examples/udhcp/simple.script
index d42f2d3d5..0397e506c 100755
--- a/examples/udhcp/simple.script
+++ b/examples/udhcp/simple.script
@@ -29,7 +29,8 @@ case "$1" in
metric=0
for i in $router ; do
echo "Adding router $i"
- route add default gw $i dev $interface metric $((metric++))
+ route add default gw $i dev $interface metric $metric
+ : $(( metric += 1 ))
done
fi