mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-31 13:55:13 +08:00
Update Makefile
This commit is contained in:
1 parent
f8cfff5085
commit
ff9b02a015
1 file changed
-20
@@ -68,26 +68,6 @@ endef
|
|||||||
define Build/Compile
|
define Build/Compile
|
||||||
endef
|
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
|
define Package/$(PKG_NAME)/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller
|
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller
|
||||||
$(INSTALL_DATA) ./files/luci/controller/autorepeater.lua $(1)/usr/lib/lua/luci/controller/
|
$(INSTALL_DATA) ./files/luci/controller/autorepeater.lua $(1)/usr/lib/lua/luci/controller/
|
||||||
|
|||||||
Reference in new issue
Block a user