From: Jo-Philipp Wich Date: Mon, 19 Dec 2022 14:28:06 +0000 (+0100) Subject: luci-proto-autoip: add protocol support for avahi-autoipd X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=e112bde5abc13161b81ae7c094db5c2573062236;p=project%2Fluci.git luci-proto-autoip: add protocol support for avahi-autoipd Fixes: #6162 Signed-off-by: Jo-Philipp Wich (cherry picked from commit 2965e527f578abda1dc58dd540343422455be3ac) --- 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) { + + } +});