diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-01-22 10:44:16 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-01-22 10:44:16 +0000 |
commit | a4f3f52d1c5932633be3b58996f9b719120d0717 (patch) | |
tree | 8c24d7f5e56f74943af7b43ad034607a58ae1766 /libs/core | |
parent | 07c2268d72daae5b7160d3f0ecc1eeeafc86601e (diff) |
New IPv6 integration
Diffstat (limited to 'libs/core')
-rw-r--r-- | libs/core/luasrc/model/network.lua | 9 |
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 |