ardupilot/Tools/Frame_params/Parrot_Disco/rcS_mode_default

15 lines
402 B
Plaintext
Raw Normal View History

2016-09-15 05:13:59 -03:00
#!/bin/sh
# default rcS running mode script
echo $((1024*1024)) > /proc/sys/net/core/wmem_max # inscrease the max socket size
if test -x /data/ftp/internal_000/APM/start_ardupilot.sh; then
ulogger -t "rcS_mode_default" -p I "Launching ArduPilot"
/data/ftp/internal_000/APM/start_ardupilot.sh
else
ulogger -t "rcS_mode_default" -p I "Launching Dragon"
DragonStarter.sh -out2null &
fi
sleep 1