flash Dell bios from Linux
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 20 Aug 2009 12:43:53 +0000 (12:43 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 20 Aug 2009 12:43:53 +0000 (12:43 +0000)
git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@129 191e9f34-6774-4a6d-acfc-7664dacd4a2a

recepies/dell/0.install [new file with mode: 0644]
recepies/dell/README [new file with mode: 0644]
recepies/dell/flash-bios.sh [new file with mode: 0755]
recepies/dell/make-mirror.sh [new file with mode: 0755]

diff --git a/recepies/dell/0.install b/recepies/dell/0.install
new file mode 100644 (file)
index 0000000..4aafb01
--- /dev/null
@@ -0,0 +1 @@
+apt-get install libsmbios-bin
diff --git a/recepies/dell/README b/recepies/dell/README
new file mode 100644 (file)
index 0000000..87b60c2
--- /dev/null
@@ -0,0 +1 @@
+based on instructions from http://www.ducea.com/2007/08/27/dell-bios-firmware-updates-on-debian/
diff --git a/recepies/dell/flash-bios.sh b/recepies/dell/flash-bios.sh
new file mode 100755 (executable)
index 0000000..c98c586
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+modprobe dell_rbu
+dellBiosUpdate -t -f $1 || exit
+
+echo -n "press ENTER to program bios or CTRL+C to abort ";
+read
+
+dellBiosUpdate -u -f $1
diff --git a/recepies/dell/make-mirror.sh b/recepies/dell/make-mirror.sh
new file mode 100755 (executable)
index 0000000..8fbe5f2
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh -x
+
+system_id=`getSystemId | grep 'System ID:' | cut -d: -f2 | sed 's/ //g'`
+url=http://linux.dell.com/repo/firmware/bios-hdrs/
+
+wget -q -O - $url | grep system_bios_ven_0x1028_dev_$system_id | sed -e 's/^.*href="//' -e 's/".*$//' -e "s|^|$url|" -e "s|$|bios.hdr|" | xargs wget -m 
+