]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Added a new autologin tool and removed the ascii init string from agetty command...
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 15 Sep 2008 12:08:51 +0000 (12:08 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 15 Sep 2008 12:08:51 +0000 (12:08 +0000)
config/etc/inittab
src/install/etc/inittab
src/install/root/autologin [new file with mode: 0755]

index 62afaba613b0bb1c3da9d6145f19c5e29c05f9de..1cc923820802014500da1240986fd3f17977f15e 100644 (file)
@@ -19,12 +19,12 @@ ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
 
 su:S016:once:/sbin/sulogin
 
-1:2345:respawn:/sbin/agetty -I '\033(K' tty1 9600
-2:2345:respawn:/sbin/agetty -I '\033(K' tty2 9600
-3:2345:respawn:/sbin/agetty -I '\033(K' tty3 9600
-4:2345:respawn:/sbin/agetty -I '\033(K' tty4 9600
-5:2345:respawn:/sbin/agetty -I '\033(K' tty5 9600
-6:2345:respawn:/sbin/agetty -I '\033(K' tty6 9600
-#7:2345:respawn:/sbin/agetty -I '\033(K' ttyS0 9600 vt100
+1:2345:respawn:/sbin/agetty tty1 9600
+2:2345:respawn:/sbin/agetty tty2 9600
+3:2345:respawn:/sbin/agetty tty3 9600
+4:2345:respawn:/sbin/agetty tty4 9600
+5:2345:respawn:/sbin/agetty tty5 9600
+6:2345:respawn:/sbin/agetty tty6 9600
+#7:2345:respawn:/sbin/agetty ttyS0 9600 vt100
 
 # End /etc/inittab
index 50eaa0391648cdc25776465d5cfdcaa77470613e..2e9c4713706fed4ae0bba3c4a829957c33211b3f 100644 (file)
@@ -19,12 +19,12 @@ ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
 
 su:S016:once:/sbin/sulogin
 
-1:2345:respawn:/sbin/mingetty --autologin root tty1
-2:2345:respawn:/sbin/agetty -I '\033(K' tty2 9600
-3:2345:respawn:/sbin/agetty -I '\033(K' tty3 9600
-4:2345:respawn:/sbin/agetty -I '\033(K' tty4 9600
-5:2345:respawn:/sbin/agetty -I '\033(K' tty5 9600
-6:2345:respawn:/sbin/agetty -I '\033(K' tty6 9600
-#7:2345:respawn:/sbin/agetty -I '\033(K' ttyS0 9600 vt100
+1:2345:respawn:/sbin/agetty -n -l /root/autologin tty1 9600
+2:2345:respawn:/sbin/agetty -n -l /root/autologin tty2 9600
+3:2345:respawn:/sbin/agetty tty3 9600
+4:2345:respawn:/sbin/agetty tty4 9600
+5:2345:respawn:/sbin/agetty tty5 9600
+6:2345:respawn:/sbin/agetty tty6 9600
+#7:2345:respawn:/sbin/agetty ttyS0 9600 vt100
 
 # End /etc/inittab
diff --git a/src/install/root/autologin b/src/install/root/autologin
new file mode 100755 (executable)
index 0000000..c8e4251
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+echo "Logging in \"root\""
+exec /bin/login -f root