luci-proto-autoip: add protocol support for avahi-autoipd
authorJo-Philipp Wich <jo@mein.io>
Mon, 19 Dec 2022 14:28:06 +0000 (15:28 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 19 Dec 2022 14:28:52 +0000 (15:28 +0100)
Fixes: #6162
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 2965e527f578abda1dc58dd540343422455be3ac)

protocols/luci-proto-autoip/Makefile [new file with mode: 0644]
protocols/luci-proto-autoip/htdocs/luci-static/resources/protocol/autoip.js [new file with mode: 0644]

diff --git a/protocols/luci-proto-autoip/Makefile b/protocols/luci-proto-autoip/Makefile
new file mode 100644 (file)
index 0000000..1a8181a
--- /dev/null
@@ -0,0 +1,14 @@
+#
+# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>
+#
+# 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 (file)
index 0000000..8223af2
--- /dev/null
@@ -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) {
+
+       }
+});