diff options
-rw-r--r-- | perl-install/detect_devices.pm | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index 87166638e..da48ba9f9 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -585,14 +585,8 @@ sub getSerialModem { my ($modules_conf, $o_mouse) = @_; my $mouse = $o_mouse || {}; $mouse->{device} = readlink "/dev/mouse"; - my $serdev; - if (arch() =~ /ppc/) { - $serdev = "macserial"; - } elsif (arch() =~ /mips/) { - $serdev = "8250"; - } else { - $serdev = "serial"; - } + my $serdev = arch() =~ /ppc/ ? "macserial" : arch() =~ /mips/ ? "8250" : "serial"; + eval { modules::load($serdev) }; my @modems; |