mirror of
https://github.com/kenzok8/openwrt-packages.git
synced 2025-01-09 03:58:26 +08:00
update 2022-12-13 20:16:42
This commit is contained in:
parent
1fa0dbe175
commit
a62c4b8e91
@ -8,8 +8,9 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=lucky
|
||||
PKG_VERSION:=1.6.2
|
||||
PKG_RELEASE:=4
|
||||
PKG_VERSION:=1.7.2
|
||||
PKG_RELEASE:=1
|
||||
PKGARCH:=all
|
||||
|
||||
ifeq ($(ARCH),mipsel)
|
||||
LUCKY_ARCH:=mipsle_softfloat
|
||||
|
@ -11,7 +11,7 @@
|
||||
USE_PROCD=1
|
||||
|
||||
START=99
|
||||
STOP=10
|
||||
STOP=15
|
||||
|
||||
CONF=lucky
|
||||
PROG=/usr/bin/lucky
|
||||
@ -26,13 +26,13 @@ get_config() {
|
||||
}
|
||||
|
||||
set_firewall() {
|
||||
if [ "$AllowInternetaccess" = "1" ]; then
|
||||
if [ "x$AllowInternetaccess" == "x1" ]; then
|
||||
uci -q delete firewall.lucky
|
||||
uci set firewall.lucky=rule
|
||||
uci set firewall.lucky.name="lucky"
|
||||
uci set firewall.lucky.target="ACCEPT"
|
||||
uci set firewall.lucky.src="wan"
|
||||
uci set firewall.lucky.proto="tcp"
|
||||
uci set firewall.lucky.proto='tcp udp'
|
||||
uci set firewall.lucky.dest_port="$port"
|
||||
uci set firewall.lucky.enabled="1"
|
||||
uci commit firewall
|
||||
@ -62,7 +62,7 @@ EOF
|
||||
else
|
||||
sed -i 's/"AllowInternetaccess": true,/"AllowInternetaccess": false,/g' "$LUCKYCONF"
|
||||
fi
|
||||
set_firewall
|
||||
# set_firewall
|
||||
procd_open_instance
|
||||
procd_set_param command "$PROG"
|
||||
procd_append_param command -c "$LUCKYCONF" -p $port
|
||||
|
Loading…
Reference in New Issue
Block a user