2020-03-01 14:25:39 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# shellcheck disable=SC1091
|
|
|
|
. ./init_functions.sh
|
2023-04-24 20:55:38 +00:00
|
|
|
source_deviceinfo
|
2020-03-01 14:25:39 +00:00
|
|
|
|
|
|
|
# mount pstore, if possible
|
|
|
|
if [ -d /sys/fs/pstore ]; then
|
|
|
|
mount -t pstore pstore /sys/fs/pstore || true
|
|
|
|
fi
|
|
|
|
|
|
|
|
if tty -s; then
|
|
|
|
tty=/dev/tty0
|
2020-07-11 11:56:12 +00:00
|
|
|
modprobe uinput
|
|
|
|
fbkeyboard -r $(cat /sys/class/graphics/fbcon/rotate) 2>$tty &
|
2020-03-01 14:25:39 +00:00
|
|
|
echo "Exit the shell to continue booting:" > $tty
|
|
|
|
sh +m <$tty >$tty 2>$tty
|
|
|
|
pkill -f fbkeyboard
|
|
|
|
else
|
|
|
|
echo "No tty attached, exiting."
|
|
|
|
fi
|