diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
commit | c527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch) | |
tree | bb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-core/initscripts/initscripts-1.0/banner.sh | |
download | poky-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-core/initscripts/initscripts-1.0/banner.sh')
-rw-r--r-- | meta/recipes-core/initscripts/initscripts-1.0/banner.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/banner.sh b/meta/recipes-core/initscripts/initscripts-1.0/banner.sh new file mode 100644 index 0000000000..9e2b091252 --- /dev/null +++ b/meta/recipes-core/initscripts/initscripts-1.0/banner.sh | |||
@@ -0,0 +1,24 @@ | |||
1 | #!/bin/sh | ||
2 | ### BEGIN INIT INFO | ||
3 | # Provides: banner | ||
4 | # Required-Start: | ||
5 | # Required-Stop: | ||
6 | # Default-Start: S | ||
7 | # Default-Stop: | ||
8 | ### END INIT INFO | ||
9 | |||
10 | if [ ! -e /dev/tty ]; then | ||
11 | /bin/mknod -m 0666 /dev/tty c 5 0 | ||
12 | fi | ||
13 | |||
14 | if ( > /dev/tty0 ) 2>/dev/null; then | ||
15 | vtmaster=/dev/tty0 | ||
16 | elif ( > /dev/vc/0 ) 2>/dev/null; then | ||
17 | vtmaster=/dev/vc/0 | ||
18 | elif ( > /dev/console ) 2>/dev/null; then | ||
19 | vtmaster=/dev/console | ||
20 | else | ||
21 | vtmaster=/dev/null | ||
22 | fi | ||
23 | echo > $vtmaster | ||
24 | echo "Please wait: booting..." > $vtmaster | ||