Update 'luasrc/model/cbi/easymesh.lua'

pull/1/head
ben 1 year ago
parent a76a07eda9
commit 0bde896279

@ -6,7 +6,7 @@ local uci = require "luci.model.uci".cursor()
m = Map("easymesh", m = Map("easymesh",
translate("PrivateRouter Easy Mesh"), translate("PrivateRouter Easy Mesh"),
translate("Powered by Batman-adv (Better Approach To Mobile Adhoc Networking - Advanced) When configuring a Mesh Node, initially activate your mesh WiFi on the radio device and establish a connection. Subsequently, enable it as a DHCP node. The default settings are typically adequate for most Internet Access Gateway Mesh configurations.") translate("Powered by Batman-adv (Better Approach To Mobile Adhoc Networking - Advanced). First setup your Mesh Server then setup the nodes. When configuring a Mesh Node, initially activate your mesh WiFi on the radio device and establish a connection. Subsequently, enable it as a DHCP node. The default settings are typically adequate for most Internet Access Gateway Mesh configurations.")
.. "<br/>" .. translate("Official website:") .. ' <a href="https://www.open-mesh.org/projects/batman-adv/wiki" target="_blank">https://www.open-mesh.org/projects/batman-adv/wiki</a>' .. "<br/>" .. translate("Official website:") .. ' <a href="https://www.open-mesh.org/projects/batman-adv/wiki" target="_blank">https://www.open-mesh.org/projects/batman-adv/wiki</a>'
) )
@ -112,7 +112,7 @@ o:depends("kvr", 1)
--enable.rmempty = false --enable.rmempty = false
---- ap_mode ---- ap_mode
enable = s:option(Flag, "ap_mode", translate("Enable as DHCP Mesh Node"), translate("Enable DHCP node. Connect to mesh gateway before enabling.")) enable = s:option(Flag, "ap_mode", translate("Enable as DHCP Mesh Node"), translate("Enable DHCP node. Connect to mesh gateway WiFi before enabling."))
enable.default = 0 enable.default = 0
enable.rmempty = false enable.rmempty = false
@ -127,15 +127,15 @@ enable.rmempty = false
--o.datatype = "ip4addr" --o.datatype = "ip4addr"
--o:depends("ap_mode", 1) --o:depends("ap_mode", 1)
o = s:option(Value, "gateway", translate("Mesh IPv4 gateway")) o = s:option(Value, "gateway", translate("Set Hostname for this DHCP Mesh Node"))
o.default = "192.168.8.1" o.default = "node1"
o.datatype = "ip4addr" o.datatype = "string"
o:depends("ap_mode", 1) o:depends("ap_mode", 1)
o = s:option(Value, "dns", translate("Mesh IPv4 DNS")) ---- o = s:option(Value, "dns", translate("Mesh IPv4 DNS"))
o.default = "192.168.8.1" --o.default = "192.168.8.1"
o.datatype = "ip4addr" --o.datatype = "ip4addr"
o:depends("ap_mode", 1) --o:depends("ap_mode", 1)
function m.on_commit(self) function m.on_commit(self)
luci.sys.call("uci commit") luci.sys.call("uci commit")

Loading…
Cancel
Save