14 lines
364 B
Bash
14 lines
364 B
Bash
|
|
#!/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
|