summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2019-04-25 13:28:56 +0200
committerGitHub <noreply@github.com>2019-04-25 13:28:56 +0200
commit35ace20b25fd7fd4410485ee82283e6d41a99bc7 (patch)
tree8890806201ce45f06b87ff83617e9b7c209b671f /modules/luci-base
parent3ffdf4160fad723b87cb0df6e3a89b3e164067ee (diff)
parent2b94060c605335c48a44afaa47b7e6ba3b243354 (diff)
Merge pull request #2119 from TDT-AG/pr/20180830-fix-iface-status-page
luci-mod-admin-full: add hint to overview page
Diffstat (limited to 'modules/luci-base')
-rw-r--r--modules/luci-base/luasrc/model/network.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/luci-base/luasrc/model/network.lua b/modules/luci-base/luasrc/model/network.lua
index 49e1657aae..dec25a5d0b 100644
--- a/modules/luci-base/luasrc/model/network.lua
+++ b/modules/luci-base/luasrc/model/network.lua
@@ -1159,6 +1159,16 @@ function protocol.is_dynamic(self)
return (self:_ubus("dynamic") == true)
end
+function protocol.is_auto(self)
+ local auto = self:_get("auto")
+
+ if auto == "0" then
+ return false
+ else
+ return true
+ end
+end
+
function protocol.is_alias(self)
local ifn, parent = nil, nil