From 4aca87515a5083ae0e31ce3177189fd43b6d05ac Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 3 Jan 2015 13:58:15 +0100 Subject: patch to Vanilla Tomato 1.28 --- .../src/router/busybox/examples/udhcp/sample.bound | 3 ++- .../src/router/busybox/examples/udhcp/sample.renew | 3 ++- .../router/busybox/examples/udhcp/sample.script | 0 .../router/busybox/examples/udhcp/simple.script | 3 ++- .../src/router/busybox/examples/udhcp/udhcpd.conf | 25 ++++++++++++++-------- 5 files changed, 22 insertions(+), 12 deletions(-) mode change 100755 => 100644 release/src/router/busybox/examples/udhcp/sample.script mode change 100755 => 100644 release/src/router/busybox/examples/udhcp/simple.script mode change 100755 => 100644 release/src/router/busybox/examples/udhcp/udhcpd.conf (limited to 'release/src/router/busybox/examples/udhcp') 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 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 diff --git a/release/src/router/busybox/examples/udhcp/sample.script b/release/src/router/busybox/examples/udhcp/sample.script old mode 100755 new mode 100644 diff --git a/release/src/router/busybox/examples/udhcp/simple.script b/release/src/router/busybox/examples/udhcp/simple.script old mode 100755 new mode 100644 index a52a7f81..98ebc159 --- a/release/src/router/busybox/examples/udhcp/simple.script +++ b/release/src/router/busybox/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 diff --git a/release/src/router/busybox/examples/udhcp/udhcpd.conf b/release/src/router/busybox/examples/udhcp/udhcpd.conf old mode 100755 new mode 100644 index 2b93e0fa..8c9a9684 --- a/release/src/router/busybox/examples/udhcp/udhcpd.conf +++ b/release/src/router/busybox/examples/udhcp/udhcpd.conf @@ -2,7 +2,7 @@ # The start and end of the IP lease block -start 192.168.0.20 #default: 192.168.0.20 +start 192.168.0.20 #default: 192.168.0.20 end 192.168.0.254 #default: 192.168.0.254 @@ -33,7 +33,7 @@ interface eth0 #default: eth0 #auto_time 7200 #default: 7200 (2 hours) -# The amount of time that an IP will be reserved (leased) for if a +# The amount of time that an IP will be reserved (leased) for if a # DHCP decline message is received (seconds). #decline_time 3600 #default: 3600 (1 hour) @@ -67,7 +67,7 @@ interface eth0 #default: eth0 #notify_file #default: (no script) -#notify_file dumpleases # <--- usefull for debugging +#notify_file dumpleases # <--- useful for debugging # The following are bootp specific options, setable by udhcpd. @@ -96,15 +96,15 @@ option lease 864000 # 10 days of seconds #opt subnet #opt timezone #opt router -#opt timesvr -#opt namesvr +#opt timesrv +#opt namesrv #opt dns -#opt logsvr -#opt cookiesvr -#opt lprsvr +#opt logsrv +#opt cookiesrv +#opt lprsrv #opt bootsize #opt domain -#opt swapsvr +#opt swapsrv #opt rootpath #opt ipttl #opt mtu @@ -114,3 +114,10 @@ option lease 864000 # 10 days of seconds #opt ntpsrv #opt tftp #opt bootfile + + +# Static leases map +#static_lease 00:60:08:11:CE:4E 192.168.0.54 +#static_lease 00:60:08:11:CE:3E 192.168.0.44 + + -- cgit v1.2.3-54-g00ecf