summaryrefslogtreecommitdiff
path: root/initscripts/initscripts-1.0/banner
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-09-18 11:20:16 +0000
committerChris Larson <clarson@kergoth.com>2004-09-18 11:20:16 +0000
commit5f7f327e6ddbf874d653556d04eb8e0ab43fd9fc (patch)
treeec9c6e0bb9d7b0346afcd78e0b64cd2432b55f3c /initscripts/initscripts-1.0/banner
parent8581a6ae0630f43d8adccb9bc8c25ede0c2b97fb (diff)
Merge openembedded@openembedded.bkbits.net:packages
into handhelds.org:/home/kergoth/code/oe/packages 2004/09/18 07:19:09-04:00 handhelds.org!kergoth initscripts: * Don't symlink urandom startup script, bump PR. * Update banner script to fail silently on devices with no VT support. BKrev: 414c19f0XDhiqRQZYEMnkLpgsr-bIg
Diffstat (limited to 'initscripts/initscripts-1.0/banner')
-rw-r--r--initscripts/initscripts-1.0/banner15
1 files changed, 15 insertions, 0 deletions
diff --git a/initscripts/initscripts-1.0/banner b/initscripts/initscripts-1.0/banner
index e69de29bb2..21a01d2846 100644
--- a/initscripts/initscripts-1.0/banner
+++ b/initscripts/initscripts-1.0/banner
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+if [ ! -e /dev/tty ]; then
+ /bin/mknod -m 0666 /dev/tty c 5 0
+fi
+
+if ( > /dev/tty0 ) 2>/dev/null; then
+ vtmaster=/dev/tty0
+elif ( > /dev/vc/0 ) 2>/dev/null; then
+ vtmaster=/dev/vc/0
+else
+ vtmaster=/dev/null
+fi
+echo > $vtmaster
+echo "Please wait: booting..." > $vtmaster