Skip to content
Snippets Groups Projects
Commit 0255cde9 authored by Michal Suchanek's avatar Michal Suchanek
Browse files

initramfs: Try running setfont until it works

parent 67ccafc8
No related branches found
No related tags found
No related merge requests found
Pipeline #2841 failed
......@@ -21,6 +21,7 @@ fi
copy_reform_font() {
copy_exec /usr/bin/setfont
copy_exec /usr/bin/sleep
copy_file Uni2-TerminusBold32x16 /usr/share/consolefonts/Uni2-TerminusBold32x16.psf.gz
}
......
......@@ -4,6 +4,13 @@ case $1 in prereqs) exit 0 ;; esac
. /scripts/functions
try_set_font() {
for i in 1 2 3 4 5 6 7 8 9 0 ; do
setfont "$@" && break
sleep 1
done
}
MACHINE=
if [ -e /etc/flash-kernel/machine ]; then
MACHINE=$(cat /etc/flash-kernel/machine)
......@@ -18,7 +25,7 @@ case $MACHINE in
;;
"MNT Pocket Reform"*)
for c in 1 2 3 4 5 6 7; do
setfont -C /dev/tty$c Uni2-TerminusBold32x16
try_set_font -C /dev/tty$c Uni2-TerminusBold32x16 &
done
;;
esac
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment