diff options
-rw-r--r-- | init/serial.conf | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/init/serial.conf b/init/serial.conf index 9d6ad0ef..387f3bc8 100644 --- a/init/serial.conf +++ b/init/serial.conf @@ -10,30 +10,13 @@ # # If your serial console is not the primary console, or you want a getty # on serial even if it's not the console, create your own event by copying -# /etc/event.d/tty[2-6], and changing the getty line in that file. +# /etc/event.d/tty, and changing the getty line in that file. -start on fedora.serial-console-available DEV=* +start on fedora.serial-console-available DEV=* and stopped rc RUNLEVEL=[2345] stop on runlevel [016] instance $DEV -pre-start script - while /bin/true ; do - LANG=C /sbin/initctl status rcS | grep -wq "rcS stop/waiting" && break - sleep 1 - done - while /bin/true ; do - runlevel=$(/sbin/runlevel | /bin/awk '{ print $2 }') - case "$runlevel" in - 2|3|4|5) - LANG=C /sbin/initctl status rc$runlevel | grep -wq "rc$runlevel stop/waiting" && break - ;; - *) - ;; - esac - sleep 1 - done - /sbin/securetty $DEV -end script +pre-start exec /sbin/securetty $DEV exec /sbin/agetty /dev/$DEV $SPEED vt100-nav post-stop script if [ "$UPSTART_EVENTS" != "${UPSTART_EVENTS##fedora.serial-console-available}" ]; then |