aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gaffney <agaffney@gentoo.org>2008-12-16 12:26:12 -0600
committerAndrew Gaffney <agaffney@gentoo.org>2008-12-16 12:26:12 -0600
commita66f35da76fb7948bcf2a23fceed19cabb6b4675 (patch)
treedb55fe054b3b1e2ff2a8dfe39929a26d3d627b2f /netboot
parentAdding a BUGS file, where we can list bugs that we have found in genkernel th... (diff)
downloadgenkernel-a66f35da76fb7948bcf2a23fceed19cabb6b4675.tar.gz
genkernel-a66f35da76fb7948bcf2a23fceed19cabb6b4675.tar.bz2
genkernel-a66f35da76fb7948bcf2a23fceed19cabb6b4675.zip
Use getty to launch ash, so that we can use ^C and friends
Diffstat (limited to 'netboot')
-rwxr-xr-xnetboot/linuxrc.x5
-rwxr-xr-xnetboot/misc/bin/ashlogin4
2 files changed, 8 insertions, 1 deletions
diff --git a/netboot/linuxrc.x b/netboot/linuxrc.x
index e982202f..e1537d71 100755
--- a/netboot/linuxrc.x
+++ b/netboot/linuxrc.x
@@ -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
index 00000000..67dadedf
--- /dev/null
+++ b/netboot/misc/bin/ashlogin
@@ -0,0 +1,4 @@
+#!/bin/ash
+
+exec /bin/ash -i
+