luci-mod-network: remove unused `iface_down` endpoint
[project/luci.git] / protocols / luci-proto-hnet / 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 "hnet-full"
16 end