From 992d0c10b4c26f0e0d3f52bec472f3bf9c55cd99 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 26 Jan 2005 16:13:05 +0000 Subject: - move convert script from spec file into standalone/convert - btw, do not try converting if uneeded --- perl-install/standalone/convert | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 perl-install/standalone/convert (limited to 'perl-install/standalone/convert') 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); +} -- cgit v1.2.1