Changeset 1903 in MondoRescue for branches/stable/mindi/mindi-bkphw
- Timestamp:
- Apr 10, 2008, 1:13:58 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/mindi-bkphw
r1842 r1903 15 15 my $confdir = "$ARGV[1]"; 16 16 17 die "You need dmidecode for Hardware support\n" if (! -x "/usr/sbin/dmidecode"); 18 17 19 mkdir $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";20 open(SYSTEM,"/usr/sbin/dmidecode -s 'system-product-name' 2> /dev/null |") || die "You need /usr/sbin/dmidecode for mindi hardware support"; 19 21 my $productname = <SYSTEM>; 20 22 close(SYSTEM); 21 23 22 die " No product name found for Hardware support\n" if (not defined $productname);24 die "ERROR: No product name found for Hardware support\n" if (not defined $productname); 23 25 24 26 chomp($productname); … … 71 73 } 72 74 if ($tool =~ /\.scexe$/) { 75 print "Found $tool, that firmware will be applied at restore time on your HP Proliant\n"; 73 76 print SCRIPT "$tool\n"; 74 77 } … … 81 84 close(SCRIPT); 82 85 } else { 83 print " No Hardware support for $productname\n";86 print "WARNING: No Hardware support for $productname\n"; 84 87 print "You may ask your manufacturer to contribute to the mindi project\n"; 85 88 }
Note:
See TracChangeset
for help on using the changeset viewer.