Changeset 2648 in MondoRescue for devel/mrmini/sbin/mindi-bkphw
- Timestamp:
- Jun 13, 2010, 12:36:32 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/mrmini/sbin/mindi-bkphw
r2466 r2648 33 33 34 34 mkdir $bkpdir,0755 if (! -d $bkpdir) ; 35 open(SYSTEM,"$dmidecode->{$pbproj} -s 'system-product-name' 2> /dev/null |") || die "You need a functional $dmidecode->{$pbproj} for m indi hardware support";35 open(SYSTEM,"$dmidecode->{$pbproj} -s 'system-product-name' 2> /dev/null |") || die "You need a functional $dmidecode->{$pbproj} for mrmini hardware support"; 36 36 my $productname = <SYSTEM>; 37 37 close(SYSTEM); … … 42 42 if ($productname =~ /proliant/i) { 43 43 print "Detected a $productname. Nice. Continue to support my job :-)\n"; 44 print "Activating Proliant support for m indi\n";44 print "Activating Proliant support for mrmini\n"; 45 45 open(PROLIANT,"$confdir/proliant.files") || die "Unable to open $confdir/proliant.files"; 46 46 open(TOOLS,"> $bkpdir/../tools.files") || die "Unable to open $bkpdir/../tools.files"; 47 open(SCRIPT,"> $bkpdir/../m indi-rsthw") || die "Unable to open $bkpdir/../mindi-rsthw";47 open(SCRIPT,"> $bkpdir/../mrmini-rsthw") || die "Unable to open $bkpdir/../mrmini-rsthw"; 48 48 print SCRIPT << 'EOF'; 49 49 #!/bin/bash … … 65 65 $tooldir = dirname($tool); 66 66 if (! (-e $tool)) { 67 print "You should install the SmartStart Scripting toolkit tool $tool\nto benefit from m indi's enhanced hardware support\n";67 print "You should install the SmartStart Scripting toolkit tool $tool\nto benefit from mrmini's enhanced hardware support\n"; 68 68 print "Get it from http://www.hp.com/servers/sstoolkit\n"; 69 69 next; 70 70 } else { 71 print "Found $tool, activating enhanced HP Proliant support in m indi\n";71 print "Found $tool, activating enhanced HP Proliant support in mrmini\n"; 72 72 print TOOLS "$tool\n"; 73 73 } … … 100 100 } else { 101 101 print "\nWARNING: No Hardware support for $productname. Not a big issue, just less features and risks ;-)\n"; 102 print "You may ask your manufacturer to contribute to the m indi project\n";102 print "You may ask your manufacturer to contribute to the mrmini project\n"; 103 103 } 104 104 rmdir $bkpdir if (-d $bkpdir) ;
Note:
See TracChangeset
for help on using the changeset viewer.