summaryrefslogtreecommitdiffstats
path: root/meta/packages/initscripts/initscripts-1.0/banner.sh
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/initscripts/initscripts-1.0/banner.sh')
-rw-r--r--meta/packages/initscripts/initscripts-1.0/banner.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/packages/initscripts/initscripts-1.0/banner.sh b/meta/packages/initscripts/initscripts-1.0/banner.sh
new file mode 100644
index 0000000000..0349ce1954
--- /dev/null
+++ b/meta/packages/initscripts/initscripts-1.0/banner.sh
@@ -0,0 +1,17 @@
1#!/bin/sh
2
3if [ ! -e /dev/tty ]; then
4 /bin/mknod -m 0666 /dev/tty c 5 0
5fi
6
7if ( > /dev/tty0 ) 2>/dev/null; then
8 vtmaster=/dev/tty0
9elif ( > /dev/vc/0 ) 2>/dev/null; then
10 vtmaster=/dev/vc/0
11elif ( > /dev/console ) 2>/dev/null; then
12 vtmaster=/dev/console
13else
14 vtmaster=/dev/null
15fi
16echo > $vtmaster
17echo "Please wait: booting..." > $vtmaster