summaryrefslogtreecommitdiffhomepage
path: root/libs/core
diff options
context:
space:
mode:
Diffstat (limited to 'libs/core')
-rw-r--r--libs/core/luasrc/model/network.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/core/luasrc/model/network.lua b/libs/core/luasrc/model/network.lua
index 09a58d7424..f251411ec7 100644
--- a/libs/core/luasrc/model/network.lua
+++ b/libs/core/luasrc/model/network.lua
@@ -749,6 +749,8 @@ function protocol.get_i18n(self)
return lng.translate("Static address")
elseif p == "dhcp" then
return lng.translate("DHCP client")
+ elseif p == "dhcpv6" then
+ return lng.translate("DHCPv6 client")
else
return lng.translate("Unknown")
end
@@ -1546,8 +1548,15 @@ end
-- setup base protocols
_M:register_protocol("static")
_M:register_protocol("dhcp")
+
+local dhcpv6 = _M:register_protocol("dhcpv6")
+function dhcpv6.is_installed(self)
+ return nfs.access("/lib/netifd/proto/dhcpv6.sh")
+end
+
_M:register_protocol("none")
+
-- load protocol extensions
local exts = nfs.dir(utl.libpath() .. "/model/network")
if exts then