]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Autologin on serial console in installer.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 5 Oct 2009 10:55:52 +0000 (12:55 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 5 Oct 2009 10:55:52 +0000 (12:55 +0200)
src/initscripts/core/serial.conf
src/install/etc/init/serial.conf [new file with mode: 0644]

index e06d3dbb67a8e1aa2d92524cf654d7a9b83a63dc..44b76fdbc9b8c203f06bfc02c5da558eac4039dc 100644 (file)
@@ -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 (file)
index 0000000..7663989
--- /dev/null
@@ -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 <port name> <speed>' 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