Browse Source

rcS: introduce flag that allows disabling startup of the default apps in order to start a different set of apps in a autostart script

sbg
Thomas Gubler 11 years ago
parent
commit
bfe8d73560
  1. 11
      ROMFS/px4fmu_common/init.d/rcS

11
ROMFS/px4fmu_common/init.d/rcS

@ -118,6 +118,7 @@ then
set MKBLCTRL_MODE none set MKBLCTRL_MODE none
set FMU_MODE pwm set FMU_MODE pwm
set MAV_TYPE none set MAV_TYPE none
set LOAD_DEFAULT_APPS yes
# #
# Set DO_AUTOCONFIG flag to use it in AUTOSTART scripts # Set DO_AUTOCONFIG flag to use it in AUTOSTART scripts
@ -465,7 +466,10 @@ then
sh /etc/init.d/rc.interface sh /etc/init.d/rc.interface
# Start standard fixedwing apps # Start standard fixedwing apps
sh /etc/init.d/rc.fw_apps if [ LOAD_DEFAULT_APPS == yes ]
then
sh /etc/init.d/rc.fw_apps
fi
fi fi
# #
@ -521,7 +525,10 @@ then
sh /etc/init.d/rc.interface sh /etc/init.d/rc.interface
# Start standard multicopter apps # Start standard multicopter apps
sh /etc/init.d/rc.mc_apps if [ LOAD_DEFAULT_APPS == yes ]
then
sh /etc/init.d/rc.mc_apps
fi
fi fi
# #

Loading…
Cancel
Save