--- rom/usr/lib/lua/luci/model/cbi/samba.lua +++ overlay/usr/lib/lua/luci/model/cbi/samba.lua @@ -28,6 +28,15 @@ translate("Allow system users to reach their home directories via " .. "network shares")) +net = s:taboption("general", Value, "interface", translate("Served interfaces")) +net.template = "cbi/network_netlist" +net.widget = "checkbox" +net.nocreate = true + +function net.cfgvalue(self, section) + return m.uci:get("samba", section, "interfaces") + end + tmpl = s:taboption("template", Value, "_tmpl", translate("Edit the template that is used for generating the samba configuration."), translate("This is the content of the file '/etc/samba/smb.conf.template' from which your samba configuration will be generated. " ..