diff options
-rwxr-xr-x | perl-install/standalone/service_harddrake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake index b441eb662..b92f6304e 100755 --- a/perl-install/standalone/service_harddrake +++ b/perl-install/standalone/service_harddrake @@ -123,7 +123,7 @@ foreach my $card (@cards) { } else { my @cards = Xconfig::card::probe(); my $driver = $cards[0]{Driver}; - my $old_driver = $1 if cat_('/etc/X11/xorg.conf') =~ /Driver "($card->{xorg_driver_regexp})"/; + my $old_driver = cat_('/etc/X11/xorg.conf') =~ /Driver "($card->{xorg_driver_regexp})"/ && $1; if ($old_driver) { switch_x_driver($card->{xorg_driver_regexp}, $driver, 'proprietary driver not found for current driver'); |