Revision 2993,
845 bytes
checked in by daisuke, 13 years ago
(diff) |
tagging as initscripts-8.91.2
|
Rev | Line | |
---|
[1108] | 1 | # Automatically start a configured serial console |
---|
| 2 | # |
---|
| 3 | # How this works: |
---|
| 4 | # |
---|
| 5 | # On boot, a udev helper examines /dev/console. If a serial console is the |
---|
| 6 | # primary console (last console on the commandline in grub), the event |
---|
| 7 | # 'fedora.serial-console-available <port name> <speed>' is emitted, which |
---|
| 8 | # triggers this script. It waits for the runlevel to finish, ensures |
---|
| 9 | # the proper port is in /etc/securetty, and starts the getty. |
---|
| 10 | # |
---|
| 11 | # If your serial console is not the primary console, or you want a getty |
---|
| 12 | # on serial even if it's not the console, create your own event by copying |
---|
| 13 | # /etc/init/tty.conf, and changing the getty line in that file. |
---|
| 14 | |
---|
| 15 | start on fedora.serial-console-available DEV=* and stopped rc RUNLEVEL=[2345] |
---|
[2988] | 16 | stop on runlevel [S016] |
---|
[1108] | 17 | |
---|
| 18 | instance $DEV |
---|
| 19 | respawn |
---|
| 20 | pre-start exec /sbin/securetty $DEV |
---|
| 21 | exec /sbin/agetty /dev/$DEV $SPEED vt100-nav |
---|
Note: See
TracBrowser
for help on using the repository browser.