istoreos: fix boot done message on multiple ttys

This commit is contained in:
Liangbin Lian 2025-01-08 18:23:17 +08:00
parent 24ab14b78e
commit 084a66221f

View File

@ -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
}