enable_kvr=s:taboption("advanced",Flag,"kvr",translate("K/V/R"),translate("Enable Key Value Roaming"))
enable_kvr=s:taboption("advanced",Flag,"kvr",translate("K/V/R"),translate("Enable Key Value Roaming"))
enable_kvr.default=1
enable_kvr.default=1
@ -196,27 +195,36 @@ o:value("node9", "node9")
o.datatype="string"
o.datatype="string"
o:depends("role","off")
o:depends("role","off")
btnAPMode=s:taboption("apmode",Button,"_btn_apmode",translate("Join Mesh Network"),translate("WARNING: THIS WILL CHANGE THIS NODE'S IP ADDRESS, YOU WILL LOOSE ACCESS TO THIS UI"))
-- IP Mode (DHCP or Static)
ipmode=s:taboption("apmode",ListValue,"ipmode",translate("IP Mode"),translate("Choose if the node uses DHCP or a Static IP"))
ipmode:value("dhcp",translate("DHCP"))
ipmode:value("static",translate("Static"))
ipmode.default="dhcp"
ipmode:depends("role","off")
-- Static IP address
o=s:taboption("apmode",Value,"ipaddr",translate("Static IP Address"))
o.default="192.168.70.254"
o.datatype="ip4addr"
o:depends({ipmode="static",role="off"})
-- DNS (Mesh Gateway IP Address)
o=s:taboption("apmode",Value,"gatewayIP",translate("Mesh Gateway IP Address"))
btnAPMode=s:taboption("apmode",Button,"_btn_apmode",translate("Enable Dumb AP Mode"),translate("WARNING: THIS WILL CHANGE THIS NODE'S IP ADDRESS, YOU WILL LOOSE ACCESS TO THIS UI"))
functionbtnAPMode.write()
functionbtnAPMode.write()
io.popen("/easymesh/easymesh.sh dumbap &")
luci.sys.call("/easymesh/dumbap.sh")
luci.sys.call("/easymesh/dumbap.sh")
end
end
btnAPMode:depends("role","off")
btnAPMode:depends("role","off")
---- ip address
--o = s:option(Value, "ipaddr", translate("Static IP Address"))
--o.default = "192.168.8.2"
--o.datatype = "ip4addr"
--o:depends("ap_mode", 1)
-- o = s:option(Value, "dns", translate("Mesh Gateway IP Address"))
-- o.default = "192.168.8.1"
-- o.datatype = "ip4addr"
-- o:depends("ap_mode", 1)
-- o = s:option(Value, "netmask", translate("IPv4 netmask"))
-- o.default = "255.255.255.0"
-- o.datatype = "ip4addr"
-- o:depends("ap_mode", 1)
-- MESH Node Control: apply mesh settings
-- MESH Node Control: apply mesh settings
ctrl=m:section(TypedSection,"easymesh","Click Save Then Enable or Disable Your Mesh WiFi settings")
ctrl=m:section(TypedSection,"easymesh","Click Save Then Enable or Disable Your Mesh WiFi settings")