diff options
author | Juergen Beisert <jbe@pengutronix.de> | 2010-01-12 11:15:42 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-01-14 10:06:16 +0100 |
commit | 46348b5d65ce6911b9d936f684828b2760cf2a14 (patch) | |
tree | 3de4c47dda6a5ba66b7c5f751ae83bc65a4d86ef /board/x86_generic/env/bin/init | |
parent | 7dcc15e8197e647abc80b1d3298a91edd45a8c2d (diff) | |
download | barebox-46348b5d65ce6911b9d936f684828b2760cf2a14.tar.gz barebox-46348b5d65ce6911b9d936f684828b2760cf2a14.tar.xz |
Add a generic PC platform
This code adds a generic x86 platform, enabling barebox to act as a
bootloader like 'GRUB'. Very minimalistic, yet. Supports only a serial console
and is tested with QEMU only.
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'board/x86_generic/env/bin/init')
-rw-r--r-- | board/x86_generic/env/bin/init | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/board/x86_generic/env/bin/init b/board/x86_generic/env/bin/init new file mode 100644 index 0000000000..2924a4449a --- /dev/null +++ b/board/x86_generic/env/bin/init @@ -0,0 +1,15 @@ +#!/bin/sh + +PATH=/env/bin +export PATH + +. /env/config + +echo +echo -n "Hit any key to stop autoboot: " +timeout -a $autoboot_timeout +if [ $? != 0 ]; then + exit +fi + +boot |