From: Michael Tremer Date: Mon, 5 Oct 2009 10:55:52 +0000 (+0200) Subject: Autologin on serial console in installer. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d4903eaa8d9683ad7a2f514a0ee805f434b82c5;p=ipfire-3.x.git Autologin on serial console in installer. --- diff --git a/src/initscripts/core/serial.conf b/src/initscripts/core/serial.conf index e06d3dbb6..44b76fdbc 100644 --- a/src/initscripts/core/serial.conf +++ b/src/initscripts/core/serial.conf @@ -21,4 +21,4 @@ pre-start script /sbin/securetty $DEV end script -exec /sbin/agetty /dev/$DEV $SPEED vt100-nav +exec /sbin/agetty $DEV $SPEED vt100-nav diff --git a/src/install/etc/init/serial.conf b/src/install/etc/init/serial.conf new file mode 100644 index 000000000..76639891b --- /dev/null +++ b/src/install/etc/init/serial.conf @@ -0,0 +1,24 @@ +description "Start a tty" +author "IPFire Team" + +# Automatically start a configured serial console +# +# How this works: +# +# On boot, a udev helper examines /dev/console. If a serial console is the +# primary console (last console on the commandline in grub), the event +# 'serial-console-available ' is emitted, which +# triggers this script. +# +# 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/init/tty[2-6], and changing the getty line in that file. + +start on serial-console-available * +stop on starting shutdown or starting reboot + +pre-start script + /sbin/securetty $DEV +end script + +exec /sbin/agetty -n -l /root/autologin $DEV $SPEED vt100-nav