Use getty to launch ash, so that we can use ^C and friends
authorAndrew Gaffney <agaffney@gentoo.org>
Tue, 16 Dec 2008 18:26:12 +0000 (12:26 -0600)
committerAndrew Gaffney <agaffney@gentoo.org>
Tue, 16 Dec 2008 18:26:12 +0000 (12:26 -0600)
ChangeLog
netboot/linuxrc.x
netboot/misc/bin/ashlogin [new file with mode: 0755]

index e0bba12cb3a8f0a8147c6848d8050ca89c90e4fa..6289f9290ba5ffbfef974abe040abab5fde51d03 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,10 @@
 # Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney
 # Distributed under the GPL v2
 
+  16 Dec 2008; Andrew Gaffney <agaffney@gentoo.org> netboot/linuxrc.x,
+  +netboot/misc/bin/ashlogin:
+  Use getty to launch ash, so that we can use ^C and friends
+
   16 Dec 2008; Chris Gianelloni <wolf31o2@wolf31o2.org> +BUGS:
   Adding a BUGS file, where we can list bugs that we have found in genkernel
   that need to be resolved.
index e982202fad66868c3797c02bd87397488e7518ea..e1537d71d61df01007408e8d4e3697c18d7a9a5e 100755 (executable)
@@ -304,7 +304,10 @@ LaunchShell() {
 
        #// All Done!
        echo -e ""
-       /bin/ash
+#      /bin/ash
+       for i in 1 2 3 4; do
+               getty -n -l /bin/ashlogin tty${i} linux &
+       done
 }
 
 #//--------------------------------------------------------------------------------
diff --git a/netboot/misc/bin/ashlogin b/netboot/misc/bin/ashlogin
new file mode 100755 (executable)
index 0000000..67daded
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/ash
+
+exec /bin/ash -i
+