From 9720840dad48e3fff2ea3e87f0444533c59721ab Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 2 Aug 2004 01:31:47 +0000 Subject: check the XF86Config and/or XF86Config-4 exist before modifying it (otherwise it creates an empty file) (bugzilla #10487) --- perl-install/standalone/service_harddrake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/standalone/service_harddrake') diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake index 8833f6b5b..1cb00f405 100755 --- a/perl-install/standalone/service_harddrake +++ b/perl-install/standalone/service_harddrake @@ -46,7 +46,7 @@ if (find { $_->{driver} =~ /Card:NVIDIA/ } detect_devices::probeall()) { log::explanations("switch XFree86 driver from nvidia to nv") if /Driver "nv.+"/; s!Driver "nv.*"!Driver "nv"!g; s!([^#]Load.*glx)!#$1!g; - } $_ foreach "/etc/X11/XF86Config-4", "/etc/X11/XF86Config"; + } $_ foreach grep { -e $_ } "/etc/X11/XF86Config-4", "/etc/X11/XF86Config"; } } -- cgit v1.2.1