4e9816beab96eadeafee7593e04af0c0ea4778b7
[project/luci.git] / protocols / luci-proto-ipv6 / luasrc / model / network / proto_hnet.lua
1 -- Copyright 2014 Steven Barth <steven@midlink.org>
2 -- Licensed to the public under the Apache License 2.0.
3
4 local proto = luci.model.network:register_protocol("hnet")
5
6 function proto.get_i18n(self)
7         return luci.i18n.translate("Automatic Homenet (HNCP)")
8 end
9
10 function proto.is_installed(self)
11         return nixio.fs.access("/lib/netifd/proto/hnet.sh")
12 end
13
14 function proto.opkg_package(self)
15         return "hnetd"
16 end