diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-07-04 16:42:06 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-07-04 16:42:06 +0000 |
commit | a1ac73290ba90df470f9eb4731d0e28e95f0e34b (patch) | |
tree | 888ae034b62896223de091cb752a622e238037b4 /perl-install/standalone | |
parent | af31c99dbd17dbb3d359122adde00444582db8af (diff) | |
download | drakx-a1ac73290ba90df470f9eb4731d0e28e95f0e34b.tar drakx-a1ac73290ba90df470f9eb4731d0e28e95f0e34b.tar.gz drakx-a1ac73290ba90df470f9eb4731d0e28e95f0e34b.tar.bz2 drakx-a1ac73290ba90df470f9eb4731d0e28e95f0e34b.tar.xz drakx-a1ac73290ba90df470f9eb4731d0e28e95f0e34b.zip |
rename $done as $new_driver
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-x | perl-install/standalone/service_harddrake | 8 |
1 files changed, 4 insertions, 4 deletions
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 }); } } |