Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Vejnar <ce@vejnar.org>2011-03-01 17:48:05 +0100
committerGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2011-03-20 16:06:30 -0300
commitd53179b29d30f58467b4829827b6e8765671d891 (patch)
tree28437fa0063435028db145050482ada264927757
parentbe259ab3bea41c2befbd5e3b59ce816991964d46 (diff)
[syslinux-iso] Adding autologin on first shell
Added missing agetty ttyS0 in the patch. (Gerardo) Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
-rw-r--r--configs/syslinux-iso/overlay/etc/inittab48
-rwxr-xr-xconfigs/syslinux-iso/overlay/usr/bin/autologin2
2 files changed, 50 insertions, 0 deletions
diff --git a/configs/syslinux-iso/overlay/etc/inittab b/configs/syslinux-iso/overlay/etc/inittab
new file mode 100644
index 0000000..47ea845
--- /dev/null
+++ b/configs/syslinux-iso/overlay/etc/inittab
@@ -0,0 +1,48 @@
+#
+# /etc/inittab
+#
+
+# Runlevels:
+# 0 Halt
+# 1(S) Single-user
+# 2 Not used
+# 3 Multi-user
+# 4 Not used
+# 5 X11
+# 6 Reboot
+
+## Only one of the following two lines can be uncommented!
+# Boot to console
+id:3:initdefault:
+# Boot to X11
+#id:5:initdefault:
+
+rc::sysinit:/etc/rc.sysinit
+rs:S1:wait:/etc/rc.single
+rm:2345:wait:/etc/rc.multi
+rh:06:wait:/etc/rc.shutdown
+su:S:wait:/sbin/sulogin -p
+
+# -8 options fixes umlauts problem on login
+c1:2345:respawn:/sbin/agetty -n -l /usr/bin/autologin -8 38400 tty1 linux
+c2:2345:respawn:/sbin/agetty -8 38400 tty2 linux
+c3:2345:respawn:/sbin/agetty -8 38400 tty3 linux
+c4:2345:respawn:/sbin/agetty -8 38400 tty4 linux
+c5:2345:respawn:/sbin/agetty -8 38400 tty5 linux
+c6:2345:respawn:/sbin/agetty -8 38400 tty6 linux
+
+# Serial Virtual Console for KVM and others VMs
+#s0:2345:respawn:/sbin/agetty -8 9600 ttyS0 linux
+
+# Hypervisor Virtual Console for Xen and KVM
+#h0:2345:respawn:/sbin/agetty -8 38400 hvc0 linux
+
+ca::ctrlaltdel:/sbin/shutdown -t3 -r now
+
+# Example lines for starting a login manager
+x:5:respawn:/usr/bin/xdm -nodaemon
+#x:5:respawn:/usr/sbin/gdm -nodaemon
+#x:5:respawn:/usr/bin/kdm -nodaemon
+#x:5:respawn:/usr/bin/slim >/dev/null 2>&1
+
+# End of file
diff --git a/configs/syslinux-iso/overlay/usr/bin/autologin b/configs/syslinux-iso/overlay/usr/bin/autologin
new file mode 100755
index 0000000..c124f9e
--- /dev/null
+++ b/configs/syslinux-iso/overlay/usr/bin/autologin
@@ -0,0 +1,2 @@
+#!/bin/bash
+/bin/login -f root