On Fri, Mar 18, 2011 at 07:56:19AM +0200, Anton Zinoviev wrote: > Doesn't the following code do everything console-setup needs: > > if kbd_mode 2>/dev/null; then > configure_the_keyboard > if setfont -o /dev/null 2>/dev/null; then > configure_the_font > fi > fi
With the adequate greps, this should be okay. If configure_the_font is just a setfont invocation, there is no need to guard it, as “setfont -v $font” just spits out the same warning message if it is on a graphics console. > If the answer is yes, then there is no need for special testing toos and > perhaps this bug can be closed. I’ll leave it open nonetheless. It makes sense to have some kind of “vt_mode” command analogous to kbd_mode, rather than having to dump the current font to /dev/null. Cheers, -- Michael Schutte | michi@{uiae.at,debian.org} Innsbruck, Austria | happily accepting encrypted mail OpenPGP: 0x16fb 517b a866 c3f6 8f11 1485 f3e4 122f 1D8C 261A
signature.asc
Description: Digital signature