# 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:
+ Run getty for tty1 in the foreground
+
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
#// 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
}
#//--------------------------------------------------------------------------------