Getting an serial tty to work using upstart

For ages you have to edit /etc/inittab when you plan to use a serial tty under linux. Since Ubuntu Edgy is using upstart there will be no inittab. Upstart is using the concept of events and thus you have to configure an event:

vim /etc/event.d/ttyS0

put this in

# ttyS0 - getty

start on runlevel-S
start on runlevel-1
start on runlevel-2
start on runlevel-3
start on runlevel-4
start on runlevel-5

stop on shutdown

respawn /sbin/getty -L ttyS0 9600 vt100

and start it with

initctl start ttyS0

done.

Kommentare sind geschlossen.