From 9d3d7c4de0136998f51473cef37b29d5c8c1424f Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 28 Oct 2009 19:00:40 +0000 Subject: default 'AUTORECONFIGURE_RIGHT_XORG_DRIVER' to 'yes' on upgrade (where config file has been altered by user and thus new entries do not appear) --- perl-install/standalone/service_harddrake | 3 +++ 1 file changed, 3 insertions(+) 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"); -- cgit v1.2.1