From 2965e527f578abda1dc58dd540343422455be3ac Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 19 Dec 2022 15:28:06 +0100 Subject: [PATCH] luci-proto-autoip: add protocol support for avahi-autoipd Fixes: #6162 Signed-off-by: Jo-Philipp Wich --- protocols/luci-proto-autoip/Makefile | 14 ++++++++++++++ .../luci-static/resources/protocol/autoip.js | 16 ++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 protocols/luci-proto-autoip/Makefile create mode 100644 protocols/luci-proto-autoip/htdocs/luci-static/resources/protocol/autoip.js diff --git a/protocols/luci-proto-autoip/Makefile b/protocols/luci-proto-autoip/Makefile new file mode 100644 index 0000000000..1a8181a3e5 --- /dev/null +++ b/protocols/luci-proto-autoip/Makefile @@ -0,0 +1,14 @@ +# +# Copyright (C) 2008-2014 The LuCI Team +# +# This is free software, licensed under the Apache License, Version 2.0 . +# + +include $(TOPDIR)/rules.mk + +LUCI_TITLE:=Support for Avahi IPv4LL configuration +LUCI_DEPENDS:=+avahi-autoipd + +include ../../luci.mk + +# call BuildPackage - OpenWrt buildroot signature diff --git a/protocols/luci-proto-autoip/htdocs/luci-static/resources/protocol/autoip.js b/protocols/luci-proto-autoip/htdocs/luci-static/resources/protocol/autoip.js new file mode 100644 index 0000000000..8223af29e5 --- /dev/null +++ b/protocols/luci-proto-autoip/htdocs/luci-static/resources/protocol/autoip.js @@ -0,0 +1,16 @@ +'use strict'; +'require network'; + +return network.registerProtocol('3g', { + getI18n: function() { + return _('Avahi IPv4LL'); + }, + + getOpkgPackage: function() { + return 'avahi-autoipd'; + }, + + renderFormOptions: function(s) { + + } +}); -- 2.30.2