From: Alastair M. <mck...@co...> - 2002-08-27 13:46:55
|
Hello Console experts! I am looking for a good technique for detecting whether /dev/console is a serial console; one that works on current 2.2/2.4 kernels and will remain working in the new framework. Currently there is a bug against using tty | grep ttyS=20 as unreliable, as at this point during boot in user space, we're running on /dev/console whether screen or console is in use. Can anyone name a better solution? one solution is to write a program to use ioctl(TIOCGSERIAL) (setserial can't be guaranteed to be there). Thanks, Alastair McKinstry --=20 Alastair McKinstry <mck...@co...> Mobile: +353 87 6847928 Saorl=E9ir - Software Services, www.saorleir.com Office: +353 91 556177 Fax: +353 91 556177 GPG Key fingerprint =3D 9E64 E714 8E08 81F9 F3DC 1020 FA8E 3790 9051 38F4 |