From ea9828ab17438995df729d59b778dbdce9e7a7ee Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Tue, 16 Dec 2008 13:09:56 -0600 Subject: [PATCH] Run the getty commands with proper arguments so they don't die immediately --- ChangeLog | 3 +++ netboot/linuxrc.x | 12 ++++-------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index c566c02..0f3f09b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,9 @@ # Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney # Distributed under the GPL v2 + 16 Dec 2008; Andrew Gaffney netboot/linuxrc.x: + Run the getty commands with proper arguments so they don't die immediately + 16 Dec 2008; Andrew Gaffney netboot/linuxrc.x: Explicitly set /bin/ashlogin +x during boot diff --git a/netboot/linuxrc.x b/netboot/linuxrc.x index b90fd25..674cde3 100755 --- a/netboot/linuxrc.x +++ b/netboot/linuxrc.x @@ -303,16 +303,12 @@ LaunchShell() { #// Completed Startup touch /tmp/.startup - #// All Done! - echo -e "" -# /bin/ash - - for i in 2 3 4; do - getty -n -l /bin/ashlogin tty${i} & + for i in 2 3 4 5 6; do + getty -n -l /bin/ashlogin 38400 tty${i} & done - # Run this one in the foreground, so that our pid 1 doesn't exit - getty -n -l /bin/ashlogin tty1 + # We run the getty for tty1 in the foreground so our pid 1 doesn't end + getty -n -l /bin/ashlogin 38400 tty1 } #//-------------------------------------------------------------------------------- -- 2.26.2