source: ProjectBuilder/projects/proliantusbkey/devel/ssstk/fw.sh@ 1331

Last change on this file since 1331 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
3DISK_LABEL="LiveUSB"
4
5clear
6echo "*** Apply Firmware Updates ***"
7
8HWDISC_FILE=/tmp/hpdiscovery.xml
9export TMPDIR=$(mktemp -t -d liveusb.XXXXXX)
10mount -t vfat /dev/disk/by-label/${DISK_LABEL} $TMPDIR
11
12echo ""
13echo "Loading storage drivers for hardware"
14./load_modules.sh
15
16echo ""
17echo "Pausing to allow drivers to finish loading"
18sleep 15
19echo ""
20
21## rerun hardware discovery
22./hpdiscovery -f ${HWDISC_FILE}
23echo "Hardware Discovery saved to ${HWDISC_FILE}"
24
25## use hwquery to fetch the SystemName from hardware discovery file. ( extra " " are required )
26export "`./hwquery ${HWDISC_FILE} allboards.xml SERVERTYPE=SystemName`";
27
28echo "Server Type: ${SERVERTYPE}"
29echo "Starting Firmware Upgrade..."
30
31for 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
39done
40./stop.sh
Note: See TracBrowser for help on using the repository browser.