add scripts
This commit is contained in:
parent
f2f9f6a2d1
commit
d43498b0bb
4 changed files with 45 additions and 0 deletions
9
status.sh
Normal file
9
status.sh
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#!/system/bin/sh
|
||||
PIDF=/dev/adbdguard.pid
|
||||
if [ -e "$PIDF" ] && kill -0 "$(cat "$PIDF")" 2>/dev/null; then
|
||||
echo "running: $(cat "$PIDF")"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "stopped"
|
||||
exit 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue