summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/service_harddrake
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-10-30 22:23:17 +0000
committerOlivier Blin <oblin@mandriva.com>2009-10-30 22:23:17 +0000
commit8f93862e5bac6949d4f5510d5f8f056fdb02bdfc (patch)
tree4f44437d2746268276ddbdd4158febd04dd5257c /perl-install/standalone/service_harddrake
parent759b9eea2d659cfe3ff204c44a4dea296025967b (diff)
downloaddrakx-8f93862e5bac6949d4f5510d5f8f056fdb02bdfc.tar
drakx-8f93862e5bac6949d4f5510d5f8f056fdb02bdfc.tar.gz
drakx-8f93862e5bac6949d4f5510d5f8f056fdb02bdfc.tar.bz2
drakx-8f93862e5bac6949d4f5510d5f8f056fdb02bdfc.tar.xz
drakx-8f93862e5bac6949d4f5510d5f8f056fdb02bdfc.zip
harddrake service: do not try to reconfigure xorg driver and crash
if /etc/X11/xorg does not exist (breaks One startup)
Diffstat (limited to 'perl-install/standalone/service_harddrake')
-rwxr-xr-xperl-install/standalone/service_harddrake4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake
index 79bb09b43..a1ec50cc2 100755
--- a/perl-install/standalone/service_harddrake
+++ b/perl-install/standalone/service_harddrake
@@ -113,7 +113,9 @@ my @cards = (
);
-my @devices = grep { $_->{driver} =~ /^Card:/ } detect_devices::probeall();
+my @devices;
+@devices = grep { $_->{driver} =~ /^Card:/ } detect_devices::probeall()
+ if -f '/etc/X11/xorg.conf';
# do not auto reconfigure if more than one graphic card:
$cfg{AUTORECONFIGURE_RIGHT_XORG_DRIVER} = 'no' if scalar(@devices) > 1;