Changeset 1903 in MondoRescue for branches/stable/mindi/mindi-bkphw


Ignore:
Timestamp:
Apr 10, 2008, 1:13:58 AM (16 years ago)
Author:
Bruno Cornec
Message:

merge -r 1842:1889 2.2.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/mindi-bkphw

    r1842 r1903  
    1515my $confdir = "$ARGV[1]";
    1616
     17die "You need dmidecode for Hardware support\n" if (! -x "/usr/sbin/dmidecode");
     18
    1719mkdir $bkpdir,0755 if (! -d $bkpdir) ;
    18 open(SYSTEM,"/usr/sbin/dmidecode -s 'system-product-name' |") || die "You need /usr/sbin/dmidecode for mindi hardware support";
     20open(SYSTEM,"/usr/sbin/dmidecode -s 'system-product-name' 2> /dev/null |") || die "You need /usr/sbin/dmidecode for mindi hardware support";
    1921my $productname = <SYSTEM>;
    2022close(SYSTEM);
    2123
    22 die "No product name found for Hardware support\n" if (not defined $productname);
     24die "ERROR: No product name found for Hardware support\n" if (not defined $productname);
    2325
    2426chomp($productname);
     
    7173        }
    7274        if ($tool =~ /\.scexe$/) {
     75            print "Found $tool, that firmware will be applied at restore time on your HP Proliant\n";
    7376            print SCRIPT "$tool\n";
    7477        }
     
    8184    close(SCRIPT);
    8285} else {
    83     print "No Hardware support for $productname\n";
     86    print "WARNING: No Hardware support for $productname\n";
    8487    print "You may ask your manufacturer to contribute to the mindi project\n";
    8588}
Note: See TracChangeset for help on using the changeset viewer.