当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 7

REAL ME / FPVcast_Original
关闭

forked from chaijin / FPVcast
关闭
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
DroneStart.sh 930 Bytes
一键复制 编辑 原始数据 按行查看 历史
culapple 提交于 2020-03-04 15:23 . 完整更新
#!/bin/bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
source $DIR/script/DroneCode.sh
CONF=$DIR/../DroneConfig.txt
#source $DIR/./DroneConfig.cfg
echo $(jq -r '.DroneCheck' $CONF)
#Add 15sec checktime to cron.
if [ $(jq -r '.DroneCheck' $CONF) == "Yes" ]; then
#write out current crontab
crontab -l > $DIR/mycron
#echo new cron into cron file
echo "* * * * * /home/pi/FPVcast/script/./DroneCheck.sh > /home/pi/FPVcast/log/cron.log 2>&1" >> mycron
echo "* * * * * sleep 15; /home/pi/FPVcast/script/./DroneCheck.sh >> /home/pi/FPVcast/log/cron.log 2>&1" >> mycron
echo "* * * * * sleep 30; /home/pi/FPVcast/script/./DroneCheck.sh >> /home/pi/FPVcast/log/cron.log 2>&1" >> mycron
echo "* * * * * sleep 45; /home/pi/FPVcast/script/./DroneCheck.sh >> /home/pi/FPVcast/log/cron.log 2>&1" >> mycron
#install new cron file
crontab mycron
rm mycron
else
crontab -r
fi
#Start DroneInit
DroneInit
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/XYC2197808908/FPVcast_Original.git
git@gitee.com:XYC2197808908/FPVcast_Original.git
XYC2197808908
FPVcast_Original
FPVcast_Original
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891