pmaports/console/console-keyboard-multiplexer/ckmvt
Danct12 efd8c6cde2
console/*: add initial support for TTY keyboard (!858)
Signed-off-by: Danct12 <danct12@disroot.org>
2020-02-07 19:52:57 +01:00

24 lines
515 B
Bash
Executable file

#!/bin/sh
# as for right now, it seems that postmarketOS runs without any color :(
export TERM=linux
nr="$(printf "%s" "$1" | /bin/sed 's/^tty//')"; shift
case "$nr" in
*[!0-9]*)
echo "Usage: $0 vtnumber"
exit 1
;;
esac
tty="$(tty)"
if [ "$(tty)" != "/dev/tty$nr" ]
then exec /sbin/getty -n -l "$0" 38400 "tty$nr" linux
fi
# nicer font (requires terminus-font to be installed)
setfont /usr/share/consolefonts/ter-u24b.psf.gz
exec /usr/bin/console-keyboard-multiplexer -w : -l "CKM$nr" -- login