summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-12-10 13:57:53 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-12-10 13:57:53 +0000
commit62f00af9af47d131a0f9b7040dfee59816fa95b5 (patch)
tree2be6a2efaf5c8fd3fa6223aa83c4916d946e64af /perl-install/any.pm
parent88470ddf129d2c8f193e3450a100503a121a944d (diff)
downloaddrakx-backup-do-not-use-62f00af9af47d131a0f9b7040dfee59816fa95b5.tar
drakx-backup-do-not-use-62f00af9af47d131a0f9b7040dfee59816fa95b5.tar.gz
drakx-backup-do-not-use-62f00af9af47d131a0f9b7040dfee59816fa95b5.tar.bz2
drakx-backup-do-not-use-62f00af9af47d131a0f9b7040dfee59816fa95b5.tar.xz
drakx-backup-do-not-use-62f00af9af47d131a0f9b7040dfee59816fa95b5.zip
- fix bootloader::add_append
- add handling of serial console
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm8
1 files changed, 8 insertions, 0 deletions
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";