Implemented new, simple system boot config and sane default value system based on two parameters evaluated at boot time

This commit is contained in:
Lorenz Meier
2013-07-15 13:58:43 +02:00
parent 60ce9759d9
commit 0b47ed86e0
10 changed files with 335 additions and 21 deletions
+24
View File
@@ -24,6 +24,30 @@ else
tone_alarm 2
fi
#
# Check if auto-setup from one of the standard scripts is wanted
# SYS_AUTOSTART = 0 means no autostart (default)
#
if param compare SYS_AUTOSTART 1
then
sh /etc/init.d/rc.1_fmu_quad_x
fi
if param compare SYS_AUTOSTART 2
then
sh /etc/init.d/rc.2_fmu_io_quad_x
fi
if param compare SYS_AUTOSTART 30
then
sh /etc/init.d/rc.30_fmu_io_camflyer
fi
if param compare SYS_AUTOSTART 31
then
sh /etc/init.d/rc.31_fmu_io_phantom
fi
#
# Look for an init script on the microSD card.
#