From 62f00af9af47d131a0f9b7040dfee59816fa95b5 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 10 Dec 2001 13:57:53 +0000 Subject: - fix bootloader::add_append - add handling of serial console --- perl-install/any.pm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'perl-install/any.pm') diff --git a/perl-install/any.pm b/perl-install/any.pm index e82bba86a..80d82a4e4 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -819,6 +819,14 @@ sub write_passwd_user { } "$prefix/etc/passwd"; } +sub set_login_serial_console { + my ($prefix, $port, $speed) = @_; + + my $line = "s$port:12345:respawn:/sbin/getty ttyS$port DT$speed ansi\n"; + substInFile { s/^s$port:.*//; $_ = "$line" if eof } "$prefix/etc/inittab"; +} + + sub runlevel { my ($prefix, $runlevel) = @_; my $f = "$prefix/etc/inittab"; -- cgit v1.2.1