On Fri, Feb 25, 2011 at 06:00:43PM +0100, Cyril Brulebois wrote: > Anton Zinoviev <an...@lml.bas.bg> (25/02/2011): > > Testing the standard output and standard input never worked because > > they are redirected by Debconf. In particular /usr/bin/tty outputs > > "not a tty". For a long time the following code worked: > > > > case `readlink /proc/self/fd/2` in > > /dev/tty[0-9]*|/dev/vc/[0-9]*|/dev/console) > > echo we ARE on the Linux console. > > FWIW, /proc/self/fd only exists on Linux.
Is 'fgconsole' of any help if one could combine it with knowing which vt's have X currently running? -- Len Sorensen -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org