From f2d5cb1060ea4e58aad4aefe240ef1b5d5ecc04a Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Tue, 14 Mar 2017 14:11:10 +0100 Subject: luci-mod-admin-full: add advanced force_link option Signed-off-by: Florian Eckert --- .../luci-mod-admin-full/luasrc/model/cbi/admin_network/ifaces.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/luci-mod-admin-full/luasrc') diff --git a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/ifaces.lua b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/ifaces.lua index 16a104494a..0318522281 100644 --- a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/ifaces.lua +++ b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/ifaces.lua @@ -220,6 +220,12 @@ auto.default = (net:proto() == "none") and auto.disabled or auto.enabled delegate = s:taboption("advanced", Flag, "delegate", translate("Use builtin IPv6-management")) delegate.default = delegate.enabled +force_link = s:taboption("advanced", Flag, "force_link", + translate("Force link"), + translate("Set interface properties regardless of the link carrier (If set, carrier sense events do not invoke hotplug handlers).")) + +force_link.default = (net:proto() == "static") and force_link.enabled or force_link.disabled + if not net:is_virtual() then br = s:taboption("physical", Flag, "type", translate("Bridge interfaces"), translate("creates a bridge over specified interface(s)")) -- cgit v1.2.3