diff --git a/boards/atl/mantis-edu/init/rc.board_defaults b/boards/atl/mantis-edu/init/rc.board_defaults index 21b2424384..1f8c8c742c 100644 --- a/boards/atl/mantis-edu/init/rc.board_defaults +++ b/boards/atl/mantis-edu/init/rc.board_defaults @@ -29,20 +29,3 @@ set MIXER_FILE "" set MIXER "skip" set OUTPUT_MODE "skip" -# Start ESC already here, so that we have beeps. -tap_esc start -d /dev/ttyS4 -n 4 - -# Transition from previous non open-source flight stack -if param compare SYS_AUTOSTART 4001 -then - param reset_all - tune_control play -t 4 - sleep 2 - if bl_update /etc/extras/bootloader.bin - then - tune_control play -t 3 - else - tune_control play -t 5 - fi - sleep 2 -fi diff --git a/boards/atl/mantis-edu/init/rc.board_extras b/boards/atl/mantis-edu/init/rc.board_extras new file mode 100644 index 0000000000..a64aa796ec --- /dev/null +++ b/boards/atl/mantis-edu/init/rc.board_extras @@ -0,0 +1,18 @@ +#!/bin/sh + +tap_esc start -d /dev/ttyS4 -n 4 + +# Transition from previous non open-source flight stack +if param compare SYS_AUTOSTART 4001 +then + param reset_all + tune_control play -t 4 + sleep 2 + if bl_update /etc/extras/bootloader.bin + then + tune_control play -t 3 + else + tune_control play -t 5 + fi + sleep 2 +fi