Revision 1108,
844 bytes
checked in by daisuke, 14 years ago
(diff) |
import initscripts-8.90.6 from internal cvs repository
|
Line | |
---|
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] |
---|
16 | stop on runlevel [016] |
---|
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.