summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-radvd/luasrc/model/cbi/radvd/interface.lua
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-radvd/luasrc/model/cbi/radvd/interface.lua')
-rw-r--r--applications/luci-radvd/luasrc/model/cbi/radvd/interface.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/applications/luci-radvd/luasrc/model/cbi/radvd/interface.lua b/applications/luci-radvd/luasrc/model/cbi/radvd/interface.lua
index ca510cd762..ae8e062cba 100644
--- a/applications/luci-radvd/luasrc/model/cbi/radvd/interface.lua
+++ b/applications/luci-radvd/luasrc/model/cbi/radvd/interface.lua
@@ -47,6 +47,19 @@ s:tab("mobile", translate("Mobile IPv6"))
-- General
--
+o = s:taboption("general", Flag, "ignore", translate("Enable"))
+o.rmempty = false
+
+function o.cfgvalue(...)
+ local v = Flag.cfgvalue(...)
+ return v == "1" and "0" or "1"
+end
+
+function o.write(self, section, value)
+ Flag.write(self, section, value == "1" and "0" or "1")
+end
+
+
o = s:taboption("general", Value, "interface", translate("Interface"),
translate("Specifies the logical interface name this section belongs to"))