diff options
Diffstat (limited to 'meta/packages/initscripts/initscripts-1.0/banner.sh')
-rw-r--r-- | meta/packages/initscripts/initscripts-1.0/banner.sh | 17 |
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 | |||
3 | if [ ! -e /dev/tty ]; then | ||
4 | /bin/mknod -m 0666 /dev/tty c 5 0 | ||
5 | fi | ||
6 | |||
7 | if ( > /dev/tty0 ) 2>/dev/null; then | ||
8 | vtmaster=/dev/tty0 | ||
9 | elif ( > /dev/vc/0 ) 2>/dev/null; then | ||
10 | vtmaster=/dev/vc/0 | ||
11 | elif ( > /dev/console ) 2>/dev/null; then | ||
12 | vtmaster=/dev/console | ||
13 | else | ||
14 | vtmaster=/dev/null | ||
15 | fi | ||
16 | echo > $vtmaster | ||
17 | echo "Please wait: booting..." > $vtmaster | ||