Skip to content

Instantly share code, notes, and snippets.

@bartslinger
Last active May 11, 2019 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bartslinger/8908ff07381f6ea3b06c1049c62df44e to your computer and use it in GitHub Desktop.
Save bartslinger/8908ff07381f6ea3b06c1049c62df44e to your computer and use it in GitHub Desktop.
rcS_mode_default
#!/bin/sh
# default rcS running mode script
ulogger -t "rcS_mode_default" -p I "Launching PX4"
echo $((1024*1024)) > /proc/sys/net/core/wmem_max # increase the max socket size
echo 1 > /sys/class/gpio/gpio85/value # enables the fan
/data/ftp/internal_000/px4/px4 -d -s /home/root/px4.config /data/ftp/internal_000/px4/ >/dev/null &
sleep 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment