diff options
author | Andrew Tridgell <tridge@samba.org> | 2013-01-21 08:15:13 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2013-01-21 08:23:34 +1100 |
commit | ff35e5a58347f4d03d097f5939f19751ed82ae06 (patch) | |
tree | 00e1c8c569bb55dcaaedad4538058a9d0bc7a7c4 /ROMFS/scripts | |
parent | 09ddf7f1b3e79bd37227520610847fbcf94187ce (diff) | |
download | px4-firmware-ff35e5a58347f4d03d097f5939f19751ed82ae06.tar.gz px4-firmware-ff35e5a58347f4d03d097f5939f19751ed82ae06.tar.bz2 px4-firmware-ff35e5a58347f4d03d097f5939f19751ed82ae06.zip |
if rc.APM is installed, run it
Diffstat (limited to 'ROMFS/scripts')
-rwxr-xr-x | ROMFS/scripts/rcS | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ROMFS/scripts/rcS b/ROMFS/scripts/rcS index 69d791da5..660bf61e9 100755 --- a/ROMFS/scripts/rcS +++ b/ROMFS/scripts/rcS @@ -69,6 +69,16 @@ else fi fi +# if this is an APM build then there will be a rc.APM script +# from an EXTERNAL_SCRIPTS build option +if [ -f /etc/init.d/rc.APM ] +then + echo Running rc.APM + # if APM startup is successful then nsh will exit + sh /etc/init.d/rc.APM +fi + + # # If we are still in flight mode, work out what airframe # configuration we have and start up accordingly. |