bootmisc update: setfont/consolechars codepage support added - please review

Kok, Auke sofar at foo-projects.org
Thu Mar 8 00:41:01 CET 2007


Zbigniew Luszpinski wrote:
> Wednesday 07 of March 2007 22:28:51 Kok, Auke wrote:
>> If you can't solve this in /etc/profile.d/ or /etc/init.d/bootmisc, please
>> post a patch for /etc/profile for us to review.
>>
>> Auke
> 
> Solved. Just had to take bigger hammer :-D
> * Setups the 1-6 vcs. Lunar seems to not use more
> * bashrc and profile remains untouched 0:-)
> * no conflict with kde konsole
> * survives exit/logout/login (at least!)
> * survives vesafb and nvidia binary blob
> * haven't found any incompatibilities
> * kbd module support only for non-US charmaps :-(
> 
> zbiggy
> 
> 
> ------------------------------------------------------------------------
> 
> --- sysvinit/init.d/bootmisc	2007-03-05 20:01:02.000000000 +0100
> +++ sysvinit/init.d/bootmisc	2007-03-08 00:12:10.000000000 +0100
> @@ -16,6 +16,16 @@
>      touch /var/run/utmp /var/run/wtmp
>      [ ! -f /etc/LOCALE ] || . /etc/LOCALE
>      [ ! -f /etc/keymap ] || loadkeys -q $(cat /etc/keymap)
> -    [ ! -f /etc/consolefont ] || $CONSOLETOOL $(cat /etc/consolefont)
> +    if [ -f /etc/charmap ] && [ -x /usr/bin/setfont ]; then
> +	[ ! -f /etc/consolefont ] || /usr/bin/setfont $(cat /etc/consolefont) -m $(cat /etc/charmap);
> +	mapscrn $(cat /etc/charmap);
> +	INITTY=/dev/tty[1-6];
> +	for tty in $INITTY
> +	do

just do:

         for tty in /dev/tty[1-6] ; do

saves 2 lines ;)

> +	    echo -n -e "\033(K" > $tty
> +	done;

get rid of the trailing ';' characters. it's not C!


Otherwise looks OK..

Auke


More information about the Lunar mailing list