source: ProjectBuilder/projects/proliantusbkey/0.9.6/customized/ssstk/fw.sh@ 1436

Last change on this file since 1436 was 1436, checked in by Bruno Cornec, 12 years ago
  • Upload the 0.9.6 version of the PUSK (ProLiant USB Setup Key)
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 584 bytes
Line 
1#!/bin/bash
2#
3# This script applies firmware updates.
4# The binaries are located on the USB key in "fw" directory
5#
6# October 2011
7
8clear
9echo "*** Apply Firmware Updates ***"
10
11[ -f /ssstk/ssstk-functions ] && . /ssstk/ssstk-functions
12
13# Load the drivers and mount the USB key where the settings will be saved
14ssstk_init
15
16echo "Starting Firmware Upgrade..."
17
18for f in "${TMPDIR}/fw_files/"*.scexe; do
19 chmod 755 $f
20 $f -s
21 if [ $? -eq 0 ] ; then
22 echo "Firmware $f APPLIED"
23 else
24 echo "Firmware $f NOT applied"
25 fi
26done
27
28# Copy the log files if any and unmount the key
29ssstk_stop
Note: See TracBrowser for help on using the repository browser.