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:
889 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | DISK_LABEL="LiveUSB"
|
---|
4 |
|
---|
5 | clear
|
---|
6 | echo "*** Apply Firmware Updates ***"
|
---|
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 | echo "Starting Firmware Upgrade..."
|
---|
30 |
|
---|
31 | for f in "${TMPDIR}/fw_files/"*.scexe; do
|
---|
32 | chmod 755 $f
|
---|
33 | $f -s
|
---|
34 | if [ $? -eq 0 ] ; then
|
---|
35 | echo "Firmware $f APPLIED"
|
---|
36 | else
|
---|
37 | echo "Firmware $f NOT applied"
|
---|
38 | fi
|
---|
39 | done
|
---|
40 | ./stop.sh
|
---|
Note:
See
TracBrowser
for help on using the repository browser.