Subject: [Voyage-linux] releasing /dev/ttyS0 from the
console once booted...



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





Programming list archiving by: Enterprise Git Hosting