diff options
author | Andrew Gaffney <agaffney@gentoo.org> | 2008-12-16 12:34:20 -0600 |
---|---|---|
committer | Andrew Gaffney <agaffney@gentoo.org> | 2008-12-16 12:34:20 -0600 |
commit | 0750197e450ea6058c8c882d048df6cbf81c2c66 (patch) | |
tree | 7c348ae0be50fb239a93a6caf0c658e2ed865191 /netboot | |
parent | Use getty to launch ash, so that we can use ^C and friends (diff) | |
download | genkernel-0750197e450ea6058c8c882d048df6cbf81c2c66.tar.gz genkernel-0750197e450ea6058c8c882d048df6cbf81c2c66.tar.bz2 genkernel-0750197e450ea6058c8c882d048df6cbf81c2c66.zip |
Run getty for tty1 in the foreground
Diffstat (limited to 'netboot')
-rwxr-xr-x | netboot/linuxrc.x | 6 |
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 } #//-------------------------------------------------------------------------------- |