Changeset 3094 in MondoRescue for branches/3.0/mindi/mindi-bkphw


Ignore:
Timestamp:
Mar 30, 2013, 6:04:05 AM (11 years ago)
Author:
Bruno Cornec
Message:
  • Update ProLiant support with hp-rcu and hp-fm (Gen8 and following)
File:
1 edited

Legend:

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

    r2995 r3094  
    3636    print "Detected a $productname. Nice. Continue to support my job :-)\n";
    3737    print "Activating ProLiant support for mindi\n";
    38     print "You can install the SmartStart Scripting toolkit tool $tool\nto benefit from mindi's enhanced ProLiant support\n";
    39     print "Get it from http://www.hp.com/servers/sstoolkit\n";
    40     print "And use the SDR to get all other HP ProLiant packages\n";
    41     print "Get it from http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/\n";
     38    print "You can install SDR packages to benefit from mindi's enhanced ProLiant support\n";
     39    print "Get them from http://downloads.linux.hp.com/SDR/\n";
    4240    open(PROLIANT,"$confdir/deplist.d/ProLiant.conf") || die "Unable to open $confdir/deplist.d/ProLiant.conf";
    4341    # generate a list of what need to be put on the backup media
     
    7169        }
    7270        if ($tool =~ /\/conrep$/) {
     71            my $xmlf = "/opt/hp/hp-scripting-tools/etc/conrep.xml";
    7372            # From the package
    74             if (! -f "/opt/hp/hp-scripting-tools/etc/conrep.xml") {
    75                 $ret = system("$tool -s -x /opt/hp/hp-scripting-tools/etc/conrep.xml -f$bkpdir/conrep.dat");
     73            if (-f $xmlf) {
     74                $ret = system("$tool -s -x $xmlf -f$bkpdir/conrep.dat");
    7675            # From the SSSTK
    77             } elsif (! -f "/usr/share/conrep/conrep.xml") {
    78                 $ret = system("$tool -s -x /usr/share/conrep/conrep.xml -f$bkpdir/conrep.dat");
    7976            } else {
    80                 next;
     77                $xmlf = "/usr/share/conrep/conrep.xml";
     78                if (-f $xmlf) {
     79                    $ret = system("$tool -s -x $xmlf -f$bkpdir/conrep.dat");
     80                } else {
     81                    next;
     82                }
    8183            }
    8284            print SCRIPT "$tool -l -f$locbkpdir/conrep.dat\n";
    83             print TOOLS "$tool.xml\n";
     85            print TOOLS "$xmlf\n";
     86        }
     87        if ($tool =~ /\/hp-rcu$/) {
     88            $ret = system("$tool -s -f$bkpdir/conrep.dat");
     89            print SCRIPT "$tool -l -f$locbkpdir/conrep.dat\n";
    8490        }
    8591        if ($tool =~ /\/hpacuscripting$/) {
     
    99105            print "Found $tool, that firmware will be applied at restore time on your HP ProLiant\n";
    100106            print SCRIPT "./$tool -s\n";
     107        }
     108        if ($tool =~ /\/hp-fm/) {
     109            print "Found $tool, firmware will be upgraded at restore time on your HP ProLiant\n";
     110            print SCRIPT "./$tool upgrade\n";
    101111        }
    102112        # Kept for compatibility with older version of tools
Note: See TracChangeset for help on using the changeset viewer.