proto_hnet.lua 410 B

12345678910111213141516
  1. -- Copyright 2014 Steven Barth <steven@midlink.org>
  2. -- Licensed to the public under the Apache License 2.0.
  3. local proto = luci.model.network:register_protocol("hnet")
  4. function proto.get_i18n(self)
  5. return luci.i18n.translate("Automatic Homenet (HNCP)")
  6. end
  7. function proto.is_installed(self)
  8. return nixio.fs.access("/lib/netifd/proto/hnet.sh")
  9. end
  10. function proto.opkg_package(self)
  11. return "hnet-full"
  12. end