mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2026-04-09 20:48:35 +03:00
Add support check and install updates from GitHub
This commit is contained in:
12
zapret/script-exec.sh
Executable file
12
zapret/script-exec.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
# Copyright (c) 2024 remittor
|
||||
LOG_FILE=$1
|
||||
PID_FILE=$2
|
||||
shift 2
|
||||
: > $LOG_FILE
|
||||
(
|
||||
exec </dev/null >/dev/null 2>&1
|
||||
"$@" >> $LOG_FILE 2>&1
|
||||
) &
|
||||
echo $! > $PID_FILE
|
||||
exit 0
|
||||
Reference in New Issue
Block a user