istoreos: fix boot done message on multiple ttys
This commit is contained in:
parent
24ab14b78e
commit
084a66221f
@ -9,9 +9,12 @@ boot() {
|
||||
|
||||
# notify console system is ready
|
||||
sleep 1
|
||||
local pid=`pgrep -P 1 askfirst 2>/dev/null`
|
||||
if [ -n "$pid" ]; then
|
||||
echo "iStoreOS is ready!" >/proc/$pid/fd/1
|
||||
echo "Please press Enter to activate this console." >/proc/$pid/fd/1
|
||||
local pids=`pgrep -P 1 askfirst 2>/dev/null`
|
||||
if [ -n "$pids" ]; then
|
||||
local pid
|
||||
for pid in $pids; do
|
||||
echo "iStoreOS is ready!" >/proc/$pid/fd/1
|
||||
echo "Please press Enter to activate this console." >/proc/$pid/fd/1
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user