mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2025-12-21 23:18:10 +03:00
@@ -25,10 +25,10 @@ index 0af19c0..41c0967 100644
|
||||
done
|
||||
}
|
||||
}
|
||||
diff --git a/init.d/openwrt/zapret b/init.d/openwrt/zapret
|
||||
diff --git a/init.d/openwrt/zapret b/init.d/openwrt/zapret2
|
||||
index 8d6d3a9..fcb1e91 100755
|
||||
--- a/init.d/openwrt/zapret
|
||||
+++ b/init.d/openwrt/zapret
|
||||
--- a/init.d/openwrt/zapret2
|
||||
+++ b/init.d/openwrt/zapret2
|
||||
@@ -58,12 +58,29 @@ run_daemon()
|
||||
# use $PIDDIR/$DAEMONBASE$1.pid as pidfile
|
||||
local DAEMONBASE="$(basename "$2")"
|
||||
@@ -51,15 +51,15 @@ index 8d6d3a9..fcb1e91 100755
|
||||
procd_open_instance
|
||||
- procd_set_param command $2 $3
|
||||
+ procd_set_param command $DAEMON_PATH $DAEMON_ARGS
|
||||
procd_set_param pidfile $PIDDIR/$DAEMONBASE$1.pid
|
||||
procd_set_param pidfile $PIDDIR/${DAEMONBASE}_$1.pid
|
||||
procd_close_instance
|
||||
}
|
||||
|
||||
+DAEMON_CFGNAME="main"
|
||||
+
|
||||
run_tpws()
|
||||
run_nfqws()
|
||||
{
|
||||
[ "$DISABLE_IPV4" = "1" ] && [ "$DISABLE_IPV6" = "1" ] && return 0
|
||||
run_daemon $1 "$NFQWS2" "$NFQWS2_OPT_BASE $2"
|
||||
--
|
||||
2.41.0.windows.3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user