ardupilot/Tools/Frame_params/Parrot_Disco/rcS_mode_default

15 lines
414 B
Bash
Executable File

#!/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/ardupilot/start_ardupilot.sh; then
ulogger -t "rcS_mode_default" -p I "Launching ArduPilot"
/data/ftp/internal_000/ardupilot/start_ardupilot.sh
else
ulogger -t "rcS_mode_default" -p I "Launching Dragon"
DragonStarter.sh -out2null &
fi
sleep 1