Update Makefile

This commit is contained in:
kiddin9 2026-04-12 20:23:53 +08:00 committed by GitHub
parent bd5e3eead2
commit aad843ecfc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -68,26 +68,6 @@ endef
define Build/Compile
endef
define Package/$(PKG_NAME)/postinst
#!/bin/sh
if [ -z "$${IPKG_INSTROOT}" ]; then
( . /etc/uci-defaults/luci-autorepeater ) && rm -f /etc/uci-defaults/luci-autorepeater
chmod 755 /etc/init.d/autorepeater >/dev/null 2>&1
/etc/init.d/autorepeater enable >/dev/null 2>&1
uci -q batch <<-EOF >/dev/null
delete firewall.autorepeater
set firewall.autorepeater=include
set firewall.autorepeater.type=script
set firewall.autorepeater.path=/var/etc/autorepeater.include
set firewall.autorepeater.reload=0
commit firewall
EOF
fi
exit 0
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller
$(INSTALL_DATA) ./files/luci/controller/autorepeater.lua $(1)/usr/lib/lua/luci/controller/