[Voyage-linux] releasing /dev/ttyS0 from the console once booted...
Mike O'Connor
(spam-protected)
Wed Nov 9 17:55:57 HKT 2005
Hi Mark
>
> Is it possible to disconnect the console from /dev/ttyS0 once it has
> booted? Or do I need to get a new kernel? It would be nice to have the
> flexibility to keep using /dev/ttyS0 as console for booting, but then
> free the serial port up by some command that could be executed before
> an application loads that needs the port.
The console is directed to ttyS0 via a line in the inittab file.
- /etc/inittab
# Example how to put a getty on a serial line (for a terminal)
#
T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100
So it would be possible to adjust this file after boot once your system
is in a state where you do not need the console.
By the way the command 'init q' will cause init to reload this file.
Cheers
Mike
More information about the Voyage-linux
mailing list