zyxel-reset: add package 20170/head
authorDavid Bauer <mail@david-bauer.net>
Sun, 25 Dec 2022 01:15:08 +0000 (02:15 +0100)
committerDavid Bauer <mail@david-bauer.net>
Sun, 25 Dec 2022 01:28:48 +0000 (02:28 +0100)
Add the zyxel-reset package.

This package allows to trigger a factory-reset for ZyXEL devices by
sending a magic LLDP package while the device-to-reset is booting.

This is useful for remote-resetting a ZyXEL device running stock
firmware connected to a switch using OpenWrt. It also allows to reset
devices which do not have a reset-button such as the NWA55AXE.

Signed-off-by: David Bauer <mail@david-bauer.net>
utils/zyxel-reset/Makefile [new file with mode: 0644]

diff --git a/utils/zyxel-reset/Makefile b/utils/zyxel-reset/Makefile
new file mode 100644 (file)
index 0000000..3839a71
--- /dev/null
@@ -0,0 +1,40 @@
+#
+# Copyright (C) 2022 David Bauer <mail@david-bauer.net>
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=zyxel-reset
+PKG_SOURCE_DATE:=2022-12-23
+PKG_RELEASE:=1
+
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL:=https://github.com/blocktrron/zyxel-reset.git
+PKG_SOURCE_VERSION:=e1def7b5f117c206afe15aa57ca7433eb972d5d1
+PKG_MIRROR_HASH:=dc02f6afc5d083a7a62ec51b35b352595ef6c99a8192facb1bff7b7f90cec06a
+
+PKG_MAINTAINER:=David Bauer <mail@david-bauer.net>
+PKG_LICENSE:=GPL-2.0-only
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/zyxel-reset
+  SECTION:=utils
+  CATEGORY:=Utilities
+  TITLE:=Trigger factory-reset for ZyXEL APs
+endef
+
+define Package/zyxel-reset/description
+       This program can trigger a factory-reset on ZyXEL Access Points
+       running stock-firmware.
+endef
+
+define Package/zyxel-reset/install
+       $(INSTALL_DIR) $(1)/usr/bin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/zyxel-reset $(1)/usr/bin/zyxel-reset
+endef
+
+$(eval $(call BuildPackage,zyxel-reset))