From a1ac73290ba90df470f9eb4731d0e28e95f0e34b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 4 Jul 2007 16:42:06 +0000 Subject: rename $done as $new_driver --- perl-install/standalone/service_harddrake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'perl-install/standalone/service_harddrake') diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake index 3f3f4edee..ae8befc16 100755 --- a/perl-install/standalone/service_harddrake +++ b/perl-install/standalone/service_harddrake @@ -77,10 +77,10 @@ foreach my $card (@cards) { require Xconfig::card; my @cards = Xconfig::card::probe(); my $driver = $cards[0]{Driver}; - my $done; - substInFile { $done = $1 if s!Driver "($card->{xorg_driver_regexp})"!Driver "$driver"!g } '/etc/X11/xorg.conf'; - if ($done) { - log::explanations("switch X.org driver from $done to $driver"); + my $new_driver; + substInFile { $new_driver = $1 if s!Driver "($card->{xorg_driver_regexp})"!Driver "$driver"!g } '/etc/X11/xorg.conf'; + if ($new_driver) { + log::explanations("switch X.org driver from $new_driver to $driver"); Xconfig::card::libgl_config_and_more({ Driver => $driver }); } } -- cgit v1.2.1