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 | 95e81df65740a516a9d8c8e1d3e4471548a76b33 (patch) | |
tree | 68e19989212ee9d03b46acfa45b5c073669f6000 /files/sbin/setup_router | |
parent | 95f55f93bc351917e5ca131c2d3101f5cd17cb18 (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 |