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

12
stop.sh Normal file
View file

@ -0,0 +1,12 @@
#!/system/bin/sh
set -eu
if [ -e "$PIDF" ]; then
PID=$(cat "$PIDF")
if kill -0 "$PID" 2>/dev/null; then
kill "$PID"
echo "stopping $PID"
fi
rm -f "$PIDF"
else
echo "not running"
fi