diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2005-01-26 16:13:05 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2005-01-26 16:13:05 +0000 |
commit | 992d0c10b4c26f0e0d3f52bec472f3bf9c55cd99 (patch) | |
tree | 87a8ff86c6802cd80f1e4818fc8da89873a5768d /perl-install/standalone | |
parent | 4ecc84061788d2358194b69e6a45a1d90175c508 (diff) | |
download | drakx-backup-do-not-use-992d0c10b4c26f0e0d3f52bec472f3bf9c55cd99.tar drakx-backup-do-not-use-992d0c10b4c26f0e0d3f52bec472f3bf9c55cd99.tar.gz drakx-backup-do-not-use-992d0c10b4c26f0e0d3f52bec472f3bf9c55cd99.tar.bz2 drakx-backup-do-not-use-992d0c10b4c26f0e0d3f52bec472f3bf9c55cd99.tar.xz drakx-backup-do-not-use-992d0c10b4c26f0e0d3f52bec472f3bf9c55cd99.zip |
- move convert script from spec file into standalone/convert
- btw, do not try converting if uneeded
Diffstat (limited to 'perl-install/standalone')
-rw-r--r-- | perl-install/standalone/convert | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/perl-install/standalone/convert b/perl-install/standalone/convert new file mode 100644 index 000000000..f86039297 --- /dev/null +++ b/perl-install/standalone/convert @@ -0,0 +1,10 @@ +#!/usr/bin/perl +use Storable; +use MDK::Common::File qw(cat_); + +my $last_boot_config = "/etc/sysconfig/harddrake2/previous_hw"; + +if (cat_($last_boot_config) !~ /^pst0/) { + my $config = do $last_boot_config; + store($config, $last_boot_config); +} |