summaryrefslogtreecommitdiff
path: root/packages/altboot/files
diff options
context:
space:
mode:
authorMatthias Hentges <oe@hentges.net>2006-04-03 09:54:31 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-04-03 09:54:31 +0000
commit9d8ae3f654d70431baee403658229e900e17a847 (patch)
treeb9f9a91cd50a588a93cede2421b1eef6a1d7e3e5 /packages/altboot/files
parente16288a8cfa94af17760097a3f04ff42be47ba76 (diff)
altboot: Remove an error message when /bin/sh -> /bin/bash
Diffstat (limited to 'packages/altboot/files')
-rw-r--r--packages/altboot/files/init.altboot10
1 files changed, 7 insertions, 3 deletions
diff --git a/packages/altboot/files/init.altboot b/packages/altboot/files/init.altboot
index dc3900dcca..ed95ce1c9c 100644
--- a/packages/altboot/files/init.altboot
+++ b/packages/altboot/files/init.altboot
@@ -243,9 +243,13 @@ wait_for_input() {
# above to launch the altboot menu.
- # This filters an "<ENTER>" from the user as "any key"
- ( while :; do read x< /dev/tty0 2>&1; done; ) > /dev/null 2>&1 &
- sleep 1; kill $!
+ # Bash throws an ugly error on kill
+ if ! (readlink /bin/sh | grep -q bash)
+ then
+ # This filters an "<ENTER>" from the user as "any key"
+ ( while :; do read x< /dev/tty0 2>&1; done; ) > /dev/null 2>&1 &
+ sleep 1; kill $! >/dev/null 2>&1
+ fi