Compare commits

4 Commits

Author SHA1 Message Date
xin
eb713ff9a3 Merge remote-tracking branch 'refs/remotes/origin/zz' 2024-12-11 14:34:31 +08:00
xin
29b40826a0 经度给改位维度 2024-08-21 16:59:41 +08:00
xin
c6faf2d8d4 Merge remote-tracking branch 'origin/master' 2024-08-21 10:05:23 +08:00
xin
a7a2e559ef 更新重启
(cherry picked from commit 6cac8bde4f)
2024-01-24 13:57:02 +08:00
3 changed files with 6 additions and 4 deletions

View File

@ -47,5 +47,5 @@ sudo apt-get install -y timedatectl
timedatectl set-timezone Asia/Shanghai timedatectl set-timezone Asia/Shanghai
date -R date -R
sudo hwclock -w -f /dev/rtc0 sudo hwclock -w -f /dev/rtc0
sudo reboot
#tc #tc

View File

@ -15,13 +15,14 @@ do
sleep 60 sleep 60
fi fi
else else
ps -ef | grep "TowerOptoSifAndSpectral" | grep -v "grep" pid=$(ps -ef | grep "TowerOptoSifAndSpectral" | grep -v "grep" | awk '{print $2}')
if [ "$?" -eq 1 ] if [ -z "$pid" ]
then then
sleep 60 sleep 60
else else
echo "$?"
echo "time to kill the task" > /home/data/log.txt echo "time to kill the task" > /home/data/log.txt
pkill TowerOptoSifAndSpectral kill "$pid"
fi fi
fi fi
sleep 30 sleep 30

View File

@ -3,6 +3,7 @@ chmod +x /root/filebrew/filebrowser
chmod +x /root/frp_0.34.3_linux_arm/frpc chmod +x /root/frp_0.34.3_linux_arm/frpc
chmod +x /root/ffwatch.sh chmod +x /root/ffwatch.sh
/root/ffwatch.sh & /root/ffwatch.sh &
mount /dev/mmcblk1p1 /home/data/
chmod +x /root/Mywathdog.sh chmod +x /root/Mywathdog.sh
bash /root/Mywathdog.sh & bash /root/Mywathdog.sh &