mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 00:49:33 +02:00
initscripts: rename simple shell scripts to *.sh so they are sourced instead of forking
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4642 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
17
meta/packages/initscripts/initscripts-1.0/banner.sh
vendored
Normal file
17
meta/packages/initscripts/initscripts-1.0/banner.sh
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/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
|
||||
elif ( > /dev/console ) 2>/dev/null; then
|
||||
vtmaster=/dev/console
|
||||
else
|
||||
vtmaster=/dev/null
|
||||
fi
|
||||
echo > $vtmaster
|
||||
echo "Please wait: booting..." > $vtmaster
|
||||
Reference in New Issue
Block a user