(1)finger_daemon.sh use while, sleep 1s;(2)excute finger_daemon.sh in /etc/rc.local;(3)systemctl disable networking.service

This commit is contained in:
Tangchao
2023-09-04 09:59:11 +08:00
parent ee1ebd0df3
commit 2155fe5b70
2 changed files with 101 additions and 92 deletions

View File

@ -6,6 +6,9 @@ sudo mkdir /home/300tc/library
cd /home/300tc cd /home/300tc
sudo sed -i '$ i\echo "0" > /media/nvme/300TC/config/timesyncfromdji' /etc/rc.local sudo sed -i '$ i\echo "0" > /media/nvme/300TC/config/timesyncfromdji' /etc/rc.local
sudo sed -i '$ i\/home/pi/tc_ShellScripts/finger_daemon.sh &' /etc/rc.local
systemctl disable networking.service
#timedatectl | grep Time #timedatectl | grep Time
timedatectl set-timezone "Asia/Shanghai" timedatectl set-timezone "Asia/Shanghai"

View File

@ -13,6 +13,8 @@
# #
#sleep 60s #rockpi need sleep 180s when start because if not wired lan which psdk's image transmission use don't work normal. #sleep 60s #rockpi need sleep 180s when start because if not wired lan which psdk's image transmission use don't work normal.
while true
do
echo "current time is " $(date) echo "current time is " $(date)
@ -107,3 +109,7 @@ if [ $procnum -eq 0 ] ; then
else else
echo "HyperspectralLog program already runing!" echo "HyperspectralLog program already runing!"
fi fi
sleep 1s
done