02-console-setup.sh 305 B

1234567891011121314
  1. # shellcheck shell=sh
  2. msg 'setting up console'
  3. i=1
  4. dev=/dev/tty
  5. [ -d /dev/vc ] && dev=/dev/vc/
  6. while [ "${i}" -le "${TTYS:=6}" ]; do
  7. tty="${dev}${i}"
  8. [ -c "${tty}" ] || continue
  9. [ "${NUMLOCK}" ] && setleds -D +num < "${tty}"
  10. [ "${FONT}" ] && setfont "${FONT}" -C "${tty}"
  11. : "$(( i += 1 ))"
  12. done