summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-10-28 19:00:40 +0000
committerThierry Vignaud <tv@mandriva.org>2009-10-28 19:00:40 +0000
commit9d3d7c4de0136998f51473cef37b29d5c8c1424f (patch)
tree618484bc8f5c1cc3c44c268911b28d5b4e50ba74 /perl-install/standalone
parent8333ae40534dd25c99d345b1f2f04b3e5e513731 (diff)
downloaddrakx-9d3d7c4de0136998f51473cef37b29d5c8c1424f.tar
drakx-9d3d7c4de0136998f51473cef37b29d5c8c1424f.tar.gz
drakx-9d3d7c4de0136998f51473cef37b29d5c8c1424f.tar.bz2
drakx-9d3d7c4de0136998f51473cef37b29d5c8c1424f.tar.xz
drakx-9d3d7c4de0136998f51473cef37b29d5c8c1424f.zip
default 'AUTORECONFIGURE_RIGHT_XORG_DRIVER' to 'yes' on upgrade (where
config file has been altered by user and thus new entries do not appear)
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/service_harddrake3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake
index eb69a2eef..a8a728e3d 100755
--- a/perl-install/standalone/service_harddrake
+++ b/perl-install/standalone/service_harddrake
@@ -48,6 +48,9 @@ my %previous_kernel_config = getVarsFromSh("$hw_sysconfdir/kernel");
setVarsInSh("$hw_sysconfdir/kernel", { KERNEL => $kernel_major, IS_LAPTOP => bool2text($isLaptop) });
my %cfg = getVarsFromSh("$hw_sysconfdir/service.conf");
+# default to 'yes' on upgrade:
+$cfg{AUTORECONFIGURE_RIGHT_XORG_DRIVER} = 'yes' if !exists $cfg{AUTORECONFIGURE_RIGHT_XORG_DRIVER};
+
# autoreconfigure laptop-dependent services when switching from laptop to desktop, and vice versa
if (!exists $previous_kernel_config{IS_LAPTOP} || $force || $isLaptop != text2bool($previous_kernel_config{IS_LAPTOP})) {
log::explanations("Autoconfiguring laptop tools since we switched between laptop and desktop systems");