From 90e21f128a4dabf07de78549d6cbe092f05fbdb4 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Thu, 20 Aug 2009 12:57:03 +0000 Subject: [PATCH] select bios using iselect git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@130 191e9f34-6774-4a6d-acfc-7664dacd4a2a --- recepies/dell/flash-bios.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/recepies/dell/flash-bios.sh b/recepies/dell/flash-bios.sh index c98c586..50ee7af 100755 --- a/recepies/dell/flash-bios.sh +++ b/recepies/dell/flash-bios.sh @@ -1,9 +1,12 @@ -#!/bin/sh +#!/bin/sh -x -modprobe dell_rbu -dellBiosUpdate -t -f $1 || exit +bios=`ls -d linux.dell.com/repo/firmware/bios-hdrs/*0x0211*/bios.hdr | iselect -a -t 'select bios'` +dellBiosUpdate -i -f $bios || exit +dellBiosUpdate -t -f $bios || exit -echo -n "press ENTER to program bios or CTRL+C to abort "; +echo -n "ENTER to program bios and reboot or CTRL+C to abort "; read -dellBiosUpdate -u -f $1 +modprobe dell_rbu +dellBiosUpdate -u -f $bios +reboot -- 2.20.1