diff options
author | Renaud Barbier <renaud.barbier@ge.com> | 2014-02-03 15:08:24 +0000 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-02-04 08:13:40 +0100 |
commit | ba6ed94b71ef1e82923b7d84eff92c085d0f4ae1 (patch) | |
tree | 233d922ef5bd1c1394ea170f090b1ae24ed0f4cb /arch/ppc/boards/geip-da923rc/env/bin/init | |
parent | 1debe41a930b44373c53d473937791cf89a1bba5 (diff) | |
download | barebox-ba6ed94b71ef1e82923b7d84eff92c085d0f4ae1.tar.gz barebox-ba6ed94b71ef1e82923b7d84eff92c085d0f4ae1.tar.xz |
DA923RC: add boot script
A boot script is added to load DTB and Linux images for booting.
The init script starts the boot script after a 5s timeout window.
Signed-off-by: Renaud Barbier <renaud.barbier@ge.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/ppc/boards/geip-da923rc/env/bin/init')
-rw-r--r-- | arch/ppc/boards/geip-da923rc/env/bin/init | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/ppc/boards/geip-da923rc/env/bin/init b/arch/ppc/boards/geip-da923rc/env/bin/init index 330a435dd7..80cc2cffb3 100644 --- a/arch/ppc/boards/geip-da923rc/env/bin/init +++ b/arch/ppc/boards/geip-da923rc/env/bin/init @@ -14,3 +14,13 @@ fi mkdir /mnt mount -t ubifs /dev/ubi0.boot /mnt + +echo +echo -n "Hit ctrl-c to stop autoboot: " +timeout -c 5 + +if [ $? -ne 0 ]; then + exit 0 +fi + +boot |