(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:
@ -6,6 +6,9 @@ sudo mkdir /home/300tc/library
|
||||
cd /home/300tc
|
||||
|
||||
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 set-timezone "Asia/Shanghai"
|
||||
|
@ -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.
|
||||
while true
|
||||
do
|
||||
|
||||
echo "current time is " $(date)
|
||||
|
||||
@ -107,3 +109,7 @@ if [ $procnum -eq 0 ] ; then
|
||||
else
|
||||
echo "HyperspectralLog program already runing!"
|
||||
fi
|
||||
|
||||
sleep 1s
|
||||
|
||||
done
|
||||
|
Reference in New Issue
Block a user