/[sysadmin-cookbook]/recepies/dell/flash-bios.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /recepies/dell/flash-bios.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 133 - (show annotations)
Thu Aug 20 13:35:34 2009 UTC (14 years, 7 months ago) by dpavlin
File MIME type: application/x-sh
File size: 549 byte(s)
display system_id and current bios version
1 #!/bin/sh -x
2
3 system_id=`getSystemId | grep 'System ID:' | cut -d: -f2 | sed 's/ //g'`
4 version=`getSystemId | grep 'BIOS' | cut -d: -f2 | sed 's/ //g'`
5
6 dir=linux.dell.com/repo/firmware/bios-hdrs
7
8 bios=`ls -d $dir/*$system_id*/bios.hdr | cut -d/ -f 5 | iselect -a -t "System $system_id BIOS $version"`
9
10 test -z "$bios" && exit
11
12 bios="$dir/$bios/bios.hdr"
13
14 dellBiosUpdate -i -f $bios || exit
15 dellBiosUpdate -t -f $bios || exit
16
17 echo -n "ENTER to program bios and reboot or CTRL+C to abort ";
18 read
19
20 modprobe dell_rbu
21 dellBiosUpdate -u -f $bios
22 reboot

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26