summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network
diff options
context:
space:
mode:
authorPaul Donald <newtwen@gmail.com>2024-01-31 03:29:16 +0100
committerPaul Donald <newtwen@gmail.com>2024-01-31 03:39:02 +0100
commit8a0ee6689f18e9f14965b45f8c79211644c9b58a (patch)
tree23524654b103ccf4c0092951b31766030fe26ab7 /modules/luci-mod-network
parent2dc1fccbd1f46d3fa2689cc1eae3899e5a807a4f (diff)
luci-mod-network: add disabled option for interface
Enabled by default. If the interface is in use, the user will be asked to confirm. Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
Diffstat (limited to 'modules/luci-mod-network')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js
index 4a9abea5a2..0dfd7242fa 100644
--- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js
+++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js
@@ -613,6 +613,9 @@ return view.extend({
o.network = ifc.getName();
o.exclude = '@' + ifc.getName();
+ o = s.taboption('general', form.Flag, 'disabled', _('Disable this interface'));
+ o.modalonly = true;
+
o = s.taboption('general', form.Flag, 'auto', _('Bring up on boot'));
o.modalonly = true;
o.default = o.enabled;