Skip to content

Instantly share code, notes, and snippets.

@AndKe
Created May 7, 2020 17:00
Show Gist options
  • Save AndKe/0e01cad478a26dfebb072f5bbffcc0e2 to your computer and use it in GitHub Desktop.
Save AndKe/0e01cad478a26dfebb072f5bbffcc0e2 to your computer and use it in GitHub Desktop.
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment