/[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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 132 - (hide annotations)
Thu Aug 20 13:34:28 2009 UTC (14 years, 8 months ago) by dpavlin
File MIME type: application/x-sh
File size: 555 byte(s)
abort if getSystemID doesn't return valid id
1 dpavlin 130 #!/bin/sh -x
2 dpavlin 129
3 dpavlin 132 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/*0x0211*/bios.hdr | cut -d/ -f 5 | iselect -a -t "BIOS $version - select version to upgrade"`
9    
10     test -z "$bios" && exit
11    
12     bios="$dir/$bios/bios.hdr"
13    
14 dpavlin 130 dellBiosUpdate -i -f $bios || exit
15     dellBiosUpdate -t -f $bios || exit
16 dpavlin 129
17 dpavlin 130 echo -n "ENTER to program bios and reboot or CTRL+C to abort ";
18 dpavlin 129 read
19    
20 dpavlin 130 modprobe dell_rbu
21     dellBiosUpdate -u -f $bios
22     reboot

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26