aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gaffney <agaffney@gentoo.org>2008-12-16 12:34:20 -0600
committerAndrew Gaffney <agaffney@gentoo.org>2008-12-16 12:34:20 -0600
commit0750197e450ea6058c8c882d048df6cbf81c2c66 (patch)
tree7c348ae0be50fb239a93a6caf0c658e2ed865191 /netboot
parentUse getty to launch ash, so that we can use ^C and friends (diff)
downloadgenkernel-0750197e450ea6058c8c882d048df6cbf81c2c66.tar.gz
genkernel-0750197e450ea6058c8c882d048df6cbf81c2c66.tar.bz2
genkernel-0750197e450ea6058c8c882d048df6cbf81c2c66.zip
Run getty for tty1 in the foreground
Diffstat (limited to 'netboot')
-rwxr-xr-xnetboot/linuxrc.x6
1 files changed, 5 insertions, 1 deletions
diff --git a/netboot/linuxrc.x b/netboot/linuxrc.x
index e1537d71..3ac84986 100755
--- a/netboot/linuxrc.x
+++ b/netboot/linuxrc.x
@@ -305,9 +305,13 @@ LaunchShell() {
#// All Done!
echo -e ""
# /bin/ash
- for i in 1 2 3 4; do
+
+ for i in 2 3 4; do
getty -n -l /bin/ashlogin tty${i} linux &
done
+
+ # Run this one in the foreground, so that our pid 1 doesn't exit
+ getty -n -l /bin/ashlogin tty1 linux
}
#//--------------------------------------------------------------------------------