installer: clear screen for nicer output, write BIOS backup to /flash

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-09-01 03:02:14 +02:00
parent 040a2e9d06
commit edc309cec5

View File

@ -407,9 +407,12 @@ function bios_backup() {
# create an backup from installed bios
if [ "$BIOS_UPDATE" = "yes" -a -f "$BIOS_FILE" ]; then
clear
echo "##### backup old BIOS to $BIOS_BACKUP #####"
usleep 1000000
flashrom --read "$BIOS_BACKUP"
mount -o remount,rw /flash
flashrom --read /flash/$BIOS_BACKUP
mount -o remount,ro /flash
echo "##### Please control the output and press any key to continue #####"
read -sn1
@ -424,6 +427,7 @@ function bios_update() {
# update the bios
if [ "$BIOS_UPDATE" = "yes" -a -f "$BIOS_FILE" ]; then
clear
echo "##### erasing BIOS #####"
usleep 1000000
flashrom --erase
@ -445,6 +449,7 @@ function bios_erase() {
# erase the bios
if [ "$BIOS_UPDATE" = "yes" -a -f "$BIOS_FILE" ]; then
clear
echo "##### erasing BIOS #####"
usleep 1000000
flashrom --erase