load_consolefont 761 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. #(c) Copyright Barry Kauler 2012, license GPL3 (usr/share/doc/legal)
  3. #a console font gets loaded in the initrd, or failing that in rc.country.
  4. #i was also loading it in /usr/sbin/quicksetup is locale is changed.
  5. #however, we have problems with it getting "dropped", which seems to happen when run X.
  6. #so, i have created this script that will call whenever we exit from X, such as
  7. #in xwin and in xorgwizard. thanks to L18L for investigating this.
  8. #note, en locale will have empty /etc/fontmap...
  9. [ ! -s /etc/fontmap ] && exit
  10. FONTMAP="`cat /etc/fontmap`"
  11. case $FONTMAP in
  12. LatArCyrHeb-16.psfu)
  13. setfont /lib/consolefonts/${FONTMAP}.gz -C /dev/tty1
  14. ;;
  15. *) #LatGrkCyr-8x16.psfu
  16. zcat /lib/consolefonts/${FONTMAP}.gz | loadfont
  17. ;;
  18. esac
  19. ###END###