summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-compat/luasrc/model/network/proto_dhcpv6.lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-compat/luasrc/model/network/proto_dhcpv6.lua')
-rw-r--r--modules/luci-compat/luasrc/model/network/proto_dhcpv6.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/luci-compat/luasrc/model/network/proto_dhcpv6.lua b/modules/luci-compat/luasrc/model/network/proto_dhcpv6.lua
new file mode 100644
index 0000000000..0b45dad050
--- /dev/null
+++ b/modules/luci-compat/luasrc/model/network/proto_dhcpv6.lua
@@ -0,0 +1,16 @@
+-- Copyright 2013 Jo-Philipp Wich <jow@openwrt.org>
+-- Licensed to the public under the Apache License 2.0.
+
+local proto = luci.model.network:register_protocol("dhcpv6")
+
+function proto.get_i18n(self)
+ return luci.i18n.translate("DHCPv6 client")
+end
+
+function proto.is_installed(self)
+ return nixio.fs.access("/lib/netifd/proto/dhcpv6.sh")
+end
+
+function proto.opkg_package(self)
+ return "odhcp6c"
+end