From 2fd00801727c1a81085d88879b8ff30a5162925c Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 6 May 2004 07:55:53 +0000 Subject: don't succeed automatic configuration (not auto_install) when there is many cards (as requested by Joe Bolin on cooker) --- perl-install/Xconfig/card.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'perl-install/Xconfig') diff --git a/perl-install/Xconfig/card.pm b/perl-install/Xconfig/card.pm index 2cb8dc1f6..7c858589b 100644 --- a/perl-install/Xconfig/card.pm +++ b/perl-install/Xconfig/card.pm @@ -178,7 +178,9 @@ sub multi_head_choose { my @choices = multi_head_choices('', @cards); my $tc = $choices[0]; - if (!$auto) { + if ($auto) { + @choices == 1 or return; + } else { $tc = $in->ask_from_listf(N("Multi-head configuration"), N("Your system supports multiple head configuration. What do you want to do?"), sub { $_[0]{text} }, \@choices) or return; -- cgit v1.2.1