summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/convert
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-01-26 16:13:05 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-01-26 16:13:05 +0000
commit992d0c10b4c26f0e0d3f52bec472f3bf9c55cd99 (patch)
tree87a8ff86c6802cd80f1e4818fc8da89873a5768d /perl-install/standalone/convert
parent4ecc84061788d2358194b69e6a45a1d90175c508 (diff)
downloaddrakx-992d0c10b4c26f0e0d3f52bec472f3bf9c55cd99.tar
drakx-992d0c10b4c26f0e0d3f52bec472f3bf9c55cd99.tar.gz
drakx-992d0c10b4c26f0e0d3f52bec472f3bf9c55cd99.tar.bz2
drakx-992d0c10b4c26f0e0d3f52bec472f3bf9c55cd99.tar.xz
drakx-992d0c10b4c26f0e0d3f52bec472f3bf9c55cd99.zip
- move convert script from spec file into standalone/convert
- btw, do not try converting if uneeded
Diffstat (limited to 'perl-install/standalone/convert')
-rw-r--r--perl-install/standalone/convert10
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);
+}