Last change
on this file since 1483 was 1331, checked in by Bruno Cornec, 13 years ago |
Adds a new proliantusbkey project
|
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
1.0 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | DISK_LABEL="LiveUSB"
|
---|
4 |
|
---|
5 | clear
|
---|
6 | echo "*** Deploying iLO Configuration only ***"
|
---|
7 |
|
---|
8 | HWDISC_FILE=/tmp/hpdiscovery.xml
|
---|
9 | export TMPDIR=$(mktemp -t -d liveusb.XXXXXX)
|
---|
10 | mount -t vfat /dev/disk/by-label/${DISK_LABEL} $TMPDIR
|
---|
11 |
|
---|
12 | echo ""
|
---|
13 | echo "Loading storage drivers for hardware"
|
---|
14 | ./load_modules.sh
|
---|
15 |
|
---|
16 | echo ""
|
---|
17 | echo "Pausing to allow drivers to finish loading"
|
---|
18 | sleep 15
|
---|
19 | echo ""
|
---|
20 |
|
---|
21 | ## rerun hardware discovery
|
---|
22 | ./hpdiscovery -f ${HWDISC_FILE}
|
---|
23 | echo "Hardware Discovery saved to ${HWDISC_FILE}"
|
---|
24 |
|
---|
25 | ## use hwquery to fetch the SystemName from hardware discovery file. ( extra " " are required )
|
---|
26 | export "`./hwquery ${HWDISC_FILE} allboards.xml SERVERTYPE=SystemName`";
|
---|
27 |
|
---|
28 | echo "Server Type: ${SERVERTYPE}"
|
---|
29 |
|
---|
30 | ./ifhw ${HWDISC_FILE} allboards.xml "PCI:Integrated Lights-Out" 2> /dev/null
|
---|
31 | if [ $? = 0 ] ; then
|
---|
32 | modprobe hpilo
|
---|
33 | # First reset iLO to factory default
|
---|
34 | # hponcfg -r
|
---|
35 | # The apply minimal config
|
---|
36 | hponcfg -f ${TMPDIR}/data_files/ilo.dat
|
---|
37 | if [ $? = 0 ] ; then
|
---|
38 | echo "Integrated Lights-Out Configuration data_files/ilo.dat APPLIED"
|
---|
39 | fi
|
---|
40 | fi
|
---|
41 | ./stop.sh
|
---|
Note:
See
TracBrowser
for help on using the repository browser.