testing...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-01-08 01:56:44 +03:00
parent d889b76b72
commit cf76f419ab
2 changed files with 23 additions and 13 deletions

View File

@ -204,6 +204,27 @@ xreadpass(){
return 1
}
#
# tklWaitForSetup MSG
#
tklWaitForSetup(){
printf "$1"
while ! $(lxc-attach $ID -- test -e /etc/inithooks.conf) ; do
printf '.'
sleep 5
done
printf '+'
sleep 5
while ! [[ $(lxc-attach $ID -- cat /etc/inithooks.conf | wc -c) < 2 ]] ; do
printf '.'
sleep 5
done
printf 'ready.\n'
sleep 5
}
#
# readConfig
#

View File

@ -91,21 +91,10 @@ sleep ${TIMEOUT:=5}
# for tkl inithooks doc see:
# https://www.turnkeylinux.org/docs/inithooks
printf "# TKL setup, this may take a while"
while ! $(lxc-attach $ID -- test -e /etc/inithooks.conf) ; do
printf '.'
sleep 5
done
printf '+'
while ! [[ $(lxc-attach $ID -- cat /etc/inithooks.conf | wc -c) < 2 ]] ; do
printf '.'
sleep 5
done
printf 'ready.\n'
sleep 5
tklWaitForSetup "# TKL setup, this may take a while"
echo "# Starting TKL UI..."
@ lxc-attach $ID -- bash --login -c 'exit'
#@ lxc-attach $ID -- bash --login -c 'exit'
exit