diff options
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); +} |