mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-20 03:13:44 +08:00
Add airframe .post scripts on NuttX targets
This commit is contained in:
committed by
Beat Küng
parent
e964af9262
commit
daeba4e75f
@@ -83,6 +83,7 @@ add_custom_command(
|
||||
${romfs_gen_root_dir}/init.d/rcS
|
||||
${romfs_gen_root_dir}/init.d/rc.serial
|
||||
${romfs_gen_root_dir}/init.d/rc.autostart
|
||||
${romfs_gen_root_dir}/init.d/rc.autostart.post
|
||||
romfs_copy.stamp
|
||||
COMMAND ${CMAKE_COMMAND} -E remove_directory ${romfs_gen_root_dir}
|
||||
# TODO: we should only copy the files in ${romfs_copy_files}
|
||||
|
||||
@@ -490,6 +490,13 @@ else
|
||||
#
|
||||
sh /etc/init.d/rc.logging
|
||||
|
||||
#
|
||||
# Set additional parameters and env variables for selected AUTOSTART.
|
||||
#
|
||||
if ! param compare SYS_AUTOSTART 0
|
||||
then
|
||||
sh /etc/init.d/rc.autostart.post
|
||||
fi
|
||||
|
||||
if ! param compare SYS_PARAM_VER ${PARAM_DEFAULTS_VER}
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user