summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfig
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-08-12 21:50:09 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-08-12 21:50:09 +0000
commita300aa3c29e807051cad181a690ad48b274ec46a (patch)
tree8613ae7bfd6eee49fa12e719947aa6261a81e5e8 /perl-install/Xconfig
parent56dbe3500ec38d61a3fd9c46f0b1b7aab38c843e (diff)
downloaddrakx-backup-do-not-use-a300aa3c29e807051cad181a690ad48b274ec46a.tar
drakx-backup-do-not-use-a300aa3c29e807051cad181a690ad48b274ec46a.tar.gz
drakx-backup-do-not-use-a300aa3c29e807051cad181a690ad48b274ec46a.tar.bz2
drakx-backup-do-not-use-a300aa3c29e807051cad181a690ad48b274ec46a.tar.xz
drakx-backup-do-not-use-a300aa3c29e807051cad181a690ad48b274ec46a.zip
create a backup of XF86Config (XF86Config.old)
Diffstat (limited to 'perl-install/Xconfig')
-rw-r--r--perl-install/Xconfig/xfreeX.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/Xconfig/xfreeX.pm b/perl-install/Xconfig/xfreeX.pm
index 977de104a..17c9c3264 100644
--- a/perl-install/Xconfig/xfreeX.pm
+++ b/perl-install/Xconfig/xfreeX.pm
@@ -23,6 +23,7 @@ sub read {
sub write {
my ($raw_X, $file) = @_;
$file ||= ($::prefix || '') . $raw_X->config_file;
+ rename $file, "$file.old";
Xconfig::parse::write_XF86Config($raw_X, $file);
}