mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-07-27 10:31:38 +08:00
Update Makefile
This commit is contained in:
parent
bd5e3eead2
commit
aad843ecfc
@ -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/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user