diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-10-28 19:00:40 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-10-28 19:00:40 +0000 |
commit | 9d3d7c4de0136998f51473cef37b29d5c8c1424f (patch) | |
tree | 618484bc8f5c1cc3c44c268911b28d5b4e50ba74 | |
parent | 8333ae40534dd25c99d345b1f2f04b3e5e513731 (diff) | |
download | drakx-backup-do-not-use-9d3d7c4de0136998f51473cef37b29d5c8c1424f.tar drakx-backup-do-not-use-9d3d7c4de0136998f51473cef37b29d5c8c1424f.tar.gz drakx-backup-do-not-use-9d3d7c4de0136998f51473cef37b29d5c8c1424f.tar.bz2 drakx-backup-do-not-use-9d3d7c4de0136998f51473cef37b29d5c8c1424f.tar.xz drakx-backup-do-not-use-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)
-rwxr-xr-x | perl-install/standalone/service_harddrake | 3 |
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"); |