add scripts

This commit is contained in:
Pakin 2025-08-25 13:43:03 +07:00
parent f2f9f6a2d1
commit d43498b0bb
4 changed files with 45 additions and 0 deletions

9
status.sh Normal file
View 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