Barebox Update (#12)
* Create hassio-rauc.service * Update hassio-supervisor.service * Update hassio-rauc.service * Update hassio-supervisor.service * Update and rename hassio-rauc.service to rauc-good.service * Update rauc-good.service * Create rauc-bad.service * Update rauc-bad.service * Update rauc-good.service * Update hassio-supervisor.service * Fix barebox recovery * Create title * Create title * Create action * Create title * Create action * Create 20-boot-system1 * Rename buildroot-external/barebox-env/menu/20-boot-system1/title to buildroot-external/barebox-env/menu/20-boot-system2title * Update and rename buildroot-external/barebox-env/menu/20-boot-system2title to buildroot-external/barebox-env/menu/20-boot-system1/title * Create title * Create action * Create action * Delete autoboot_timeout * Create editcmd * Update init * Update init * Fix barebox config * Update init * Update system0 * Update system1 * Barebox cleanups * Update init * Update init * Create 0001-get-devicetree-from-file.patch * Update ova_defconfig * Update system0 * Update system1 * Create 0001-add-i-argument-to.patch * Update barebox.config * Update rauc * Rename buildroot-external/board/ova/patches/dt-util/0001-get-devicetree-from-file.patch to buildroot-external/board/ova/patches/dt-utils/0001-get-devicetree-from-file.patch * Add script * fix barebox-state
This commit is contained in:
@@ -2,19 +2,10 @@
|
||||
|
||||
export PATH=/env/bin
|
||||
|
||||
global autoboot_timeout
|
||||
global boot.default
|
||||
global linux.bootargs.base
|
||||
global linux.bootargs.console
|
||||
#linux.bootargs.dyn.* will be cleared at the beginning of boot
|
||||
global linux.bootargs.dyn.root
|
||||
global editcmd
|
||||
|
||||
[ -z "${global.autoboot_timeout}" ] && global.autoboot_timeout=3
|
||||
magicvar -a global.autoboot_timeout "timeout in seconds before automatic booting"
|
||||
[ -z "${global.boot.default}" ] && global.boot.default="system0"
|
||||
[ -z "${global.editcmd}" ] && global.editcmd=sedit
|
||||
|
||||
# Init board specific stuff
|
||||
[ -e /env/config-board ] && /env/config-board
|
||||
|
||||
# Autostart
|
||||
@@ -22,11 +13,12 @@ for i in /env/init/*; do
|
||||
. $i
|
||||
done
|
||||
|
||||
echo -e -n "\nHit any key to stop autoboot: "
|
||||
timeout -a $global.autoboot_timeout
|
||||
autoboot="$?"
|
||||
echo "- Hit m for menu or wait for autoboot -"
|
||||
timeout -a 1 -v key
|
||||
|
||||
if [ "$autoboot" = 0 ]; then
|
||||
boot
|
||||
# Run menu
|
||||
if [ "${key}" != "m" ]; then
|
||||
boot
|
||||
fi
|
||||
|
||||
menutree
|
||||
|
||||
Reference in New Issue
Block a user