From /etc/init.d/consolefont: # We patched setfont to have --tty support ... if [ -n "`setfont --help 2>&1 | grep -e '--tty'`" ] then for x in 1 2 3 4 5 6 7 8 9 10 do # Using DEVFS ? if [ -e /dev/.devfsd ] || \ [ -e /dev/.udev -a -d /dev/vc ] then /bin/setfont ${CONSOLEFONT} ${param} \ --tty=/dev/vc/${x} >/dev/null retval=$? else /bin/setfont ${CONSOLEFONT} ${param} \ --tty=/dev/tty${x} >/dev/null retval=$? fi done else This is fine for kbd-1.08-r5; however kbd-1.12 supports setting consolefont for a vt by using the short switch '-C' instead of the long switch '--tty' (presumably they applied our patch, changing the option name). Suggest adding the following code: # then they incorporated the patch with `-C' syntax elif [ -n "`setfont --help 2>&1 | grep -e '-C'`" ] then for x in 1 2 3 4 5 6 7 8 9 10 do # Using DEVFS ? if [ -e /dev/.devfsd ] || \ [ -e /dev/.udev -a -d /dev/vc ] then /bin/setfont ${CONSOLEFONT} ${param} \ -C /dev/vc/${x} >/dev/null retval=$? else /bin/setfont ${CONSOLEFONT} ${param} \ -C /dev/tty${x} >/dev/null retval=$? fi done Note: NOTADUPLICATE of bug 37596 as that was filed prior to kbd-1.12 hitting Portage.
If you'd like to merge this code with the code in bug 37596 comment 5 then I'd be happy to commit this in. Thanks.
Created attachment 24644 [details] New consolefont incorporating fixes to bug 39864 and bug 37596 / bug 39863
Created attachment 24667 [details] Corrected version /dev/vc* to /dev/vc/* /dev/tty* to /dev/tty[0-9]* - only numbered ttys ie vts will be set Oops.
Thanks, this consolefont script works for me (I use 10 vt's, have 63 nodes in /dev/vc/* and NONE in /dev/tty[0-9]*) Could the same treatment be applied to /etc/init.d/numlock and /etc/init.d/bootsplash please? I can open new bugs w/ patches for these if you want, just need to know who to assign them too. :) (by the way, I'm not sure about using /dev/vc/* for bootsplash... it may be quite slow for 63 vt's... and my suggestion in 37596 of /etc/inittab parsing probably isn't a great idea :/ )
Err, forget bootsplash, that has a /etc/conf.d variable
Here is the patch that goes in: -- Index: init.d/consolefont =================================================================== RCS file: /home/cvsroot/gentoo-src/rc-scripts/init.d/consolefont,v retrieving revision 1.19 diff -u -r1.19 consolefont --- init.d/consolefont 26 Dec 2003 00:25:24 -0000 1.19 +++ init.d/consolefont 8 Feb 2004 11:02:46 -0000 @@ -12,6 +12,7 @@ start() { local x= local param= + local sf_param= local retval=1 if [ -n "${CONSOLEFONT}" ] @@ -28,8 +29,16 @@ ebegin "Setting user font" # We patched setfont to have --tty support ... - if [ -n "`setfont --help 2>&1 | grep -e '--tty'`" ] + if [ -n "`setfont --help 2>&1 | grep -e '--tty'`" -o \ + -n "`setfont --help 2>&1 | grep -e '-C'`" ] then + if [ -n "`setfont --help 2>&1 | grep -e '--tty'`" ] + then + sf_param="--tty=" + else + sf_param="-C " + fi + for x in 1 2 3 4 5 6 7 8 9 10 do # Using DEVFS ? @@ -37,11 +46,11 @@ [ -e /dev/.udev -a -d /dev/vc ] then /bin/setfont ${CONSOLEFONT} ${param} \ - --tty=/dev/vc/${x} >/dev/null + ${sf_param}/dev/vc/${x} >/dev/null retval=$? else /bin/setfont ${CONSOLEFONT} ${param} \ - --tty=/dev/tty${x} >/dev/null + -${sf_param}/dev/tty${x} >/dev/null retval=$? fi done -- As we need to support stable kbd still. Also, what is the issue with numlock? I have: -- for tty in $(seq 1 11) do if [ -e /dev/.devfsd ] || \ [ -e /dev/.udev -a -d /dev/vc ] then setleds -D +num < /dev/vc/${tty} &>/dev/null else setleds -D +num < /dev/tty${tty} &>/dev/null fi done -- which should work fine ...
Is bug 39863 fixed now too?