diff options
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/udhcp/simple.script | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/udhcp/simple.script b/examples/udhcp/simple.script index d42f2d3..0397e50 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 |