diff options
author | Darkeye <postfach@martinmichel.info> | 2011-01-20 20:09:33 (GMT) |
---|---|---|
committer | Darkeye <postfach@martinmichel.info> | 2011-01-20 20:09:33 (GMT) |
commit | b61ab1c60d3aa979798c7cb4c481779dd7567e33 (patch) | |
tree | 68e19989212ee9d03b46acfa45b5c073669f6000 /files/sbin/setup_router | |
parent | 8c1bdfc848d9ad97a8f6f8358d3500d2fcdecb80 (diff) |
uci dhcp config added
Diffstat (limited to 'files/sbin/setup_router')
-rwxr-xr-x | files/sbin/setup_router | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/files/sbin/setup_router b/files/sbin/setup_router index ed35dd5..469175f 100755 --- a/files/sbin/setup_router +++ b/files/sbin/setup_router @@ -10,12 +10,21 @@ if [[ $router = "j" ]] read ipv4_adress uci set network.mesh.ipaddr=$ipv4_adress uci set network.mesh.proto=static - uci set network.mesh.netmask=255.255.0.0 + uci set network.mesh.netmask=255.0.0.0 + uci set dhcp.mesh=dhcp + uci set dhcp.mesh.start=2 + uci set dhcp.mesh.limit=254 + uci set dhcp.mesh.leasetime=12h + uci set dhcp.mesh.interface=mesh + uci commit dhcp else # Act as a node only + uci del dhcp.mesh + uci commit dhcp uci del network.mesh.ipaddr uci del network.mesh.proto uci del network.mesh.netmask + uci commit network echo "Der Router wird als normaler Node konfiguriert" echo |