7aed0d63818f8806f1b268721aa3ee4c57be3f09
[project/luci.git] / protocols / luci-proto-ipv6 / luasrc / model / network / proto_dhcpv6.lua
1 -- Copyright 2013 Jo-Philipp Wich <xm@subsignal.org>
2 -- Licensed to the public under the Apache License 2.0.
3
4 local proto = luci.model.network:register_protocol("dhcpv6")
5
6 function proto.get_i18n(self)
7         return luci.i18n.translate("DHCPv6 client")
8 end
9
10 function proto.is_installed(self)
11         return nixio.fs.access("/lib/netifd/proto/dhcpv6.sh")
12 end
13
14 function proto.opkg_package(self)
15         return "odhcp6c"
16 end