Redirect /dev/ttyS0 input/output to tty2
I have a secure Linux appliance that I am trying to virtualize on VMware ESX Server. All interaction and configuration of the appliance is undertaken by connecting to the appliance's serial port. All virtual ttys have been commented out on the appliance's /etc/inittab but I have uncommented tty1 and can now login to a bash shell as root. I want to be able to redirect all appliance serial output and input on /dev/ttyS0 to tty2 on boot so that configuring the appliance at any time post boot would be as easy as ALT-F2. I've renamed /dev/ttyS0 and then created a symbolic link /dev/ttyS0 -> /dev/tty2. This works but is pretty gross I reckon so are there any other more elegant ways to get ttyS0 i/o onto tty2 ?
Last edited by Kymbo; 09-04-2006 at 01:38 PM.
|