Files
vps-management-bot/scripts/pixel6-autostart.sh
2026-03-21 01:10:53 +08:00

14 lines
364 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/data/data/com.termux/files/usr/bin/bash
# Pixel 6 OpenClaw 开机自启脚本(带守护进程)
# 等待网络就绪
sleep 10
# 启动 termux-wake-lock 防止休眠
termux-wake-lock
# 启动守护进程(会自动启动 OpenClaw
nohup bash ~/watchdog.sh > ~/watchdog.log 2>&1 &
echo "OpenClaw 守护进程已启动 at $(date)" >> ~/openclaw-boot.log