slitaz-boot-scripts rev 369 5.6.1
bootopts.sh: add "font=" cheatcode to read/write console on your language (ru, el, etc?); example: "font=ter-v14n" for 14px Terminus (provided in terminus-font-base package).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu May 15 20:47:16 2014 +0300 (2014-05-15) |
parents | 43adefea453d |
children | 3e07c0a601fa |
files | etc/init.d/bootopts.sh |
line diff
1.1 --- a/etc/init.d/bootopts.sh Mon May 05 22:35:16 2014 +0200 1.2 +++ b/etc/init.d/bootopts.sh Thu May 15 20:47:16 2014 +0300 1.3 @@ -74,6 +74,12 @@ 1.4 echo -n "Setting system keymap to: $KEYMAP..." 1.5 echo "$KEYMAP" > /etc/keymap.conf 1.6 status ;; 1.7 + font=*) 1.8 + # Check for a specified console font (font=*). 1.9 + FONT=${opt#font=} 1.10 + echo -n "Setting console font to: $FONT..." 1.11 + for con in 1 2 3 4 5 6; do setfont $FONT -C /dev/tty$con; done 1.12 + status ;; 1.13 home=*) 1.14 # Check for a specified home partition (home=*) and check for 1.15 # user home dir. Note: home=usb is a shorter and easier way to