From d4737400263d02a6b173b15c173c1f8d2b13d23a Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 25 Jan 2008 17:57:35 +0000 Subject: backup xorg.conf before falling back to safe driver (#37182) --- perl-install/standalone/service_harddrake | 1 + 1 file changed, 1 insertion(+) (limited to 'perl-install/standalone') diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake index dab1428a0..1affd75e9 100755 --- a/perl-install/standalone/service_harddrake +++ b/perl-install/standalone/service_harddrake @@ -71,6 +71,7 @@ foreach my $card (@cards) { my @cards = Xconfig::card::probe(); my $driver = $cards[0]{Driver}; my $new_driver; + cp_af('/etc/X11/xorg.conf', "/etc/X11/xorg.conf.mdv$^T"); substInFile { $new_driver = $1 if s!Driver "($card->{xorg_driver_regexp})"!Driver "$driver"!g } '/etc/X11/xorg.conf'; if ($new_driver) { log::explanations("switch X.org driver from $new_driver to $driver"); -- cgit v1.2.1