- # shellcheck shell=sh
- msg 'setting up console'
- i=1
- dev=/dev/tty
- [ -d /dev/vc ] && dev=/dev/vc/
- while [ "${i}" -le "${TTYS:=6}" ]; do
- tty="${dev}${i}"
- [ -c "${tty}" ] || continue
- [ "${NUMLOCK}" ] && setleds -D +num < "${tty}"
- [ "${FONT}" ] && setfont "${FONT}" -C "${tty}"
- : "$(( i += 1 ))"
- done
|