mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +00:00
installer: clear screen for nicer output, write BIOS backup to /flash
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
040a2e9d06
commit
edc309cec5
@ -407,9 +407,12 @@ function bios_backup() {
|
|||||||
# create an backup from installed bios
|
# create an backup from installed bios
|
||||||
if [ "$BIOS_UPDATE" = "yes" -a -f "$BIOS_FILE" ]; then
|
if [ "$BIOS_UPDATE" = "yes" -a -f "$BIOS_FILE" ]; then
|
||||||
|
|
||||||
|
clear
|
||||||
echo "##### backup old BIOS to $BIOS_BACKUP #####"
|
echo "##### backup old BIOS to $BIOS_BACKUP #####"
|
||||||
usleep 1000000
|
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 #####"
|
echo "##### Please control the output and press any key to continue #####"
|
||||||
read -sn1
|
read -sn1
|
||||||
@ -424,6 +427,7 @@ function bios_update() {
|
|||||||
# update the bios
|
# update the bios
|
||||||
if [ "$BIOS_UPDATE" = "yes" -a -f "$BIOS_FILE" ]; then
|
if [ "$BIOS_UPDATE" = "yes" -a -f "$BIOS_FILE" ]; then
|
||||||
|
|
||||||
|
clear
|
||||||
echo "##### erasing BIOS #####"
|
echo "##### erasing BIOS #####"
|
||||||
usleep 1000000
|
usleep 1000000
|
||||||
flashrom --erase
|
flashrom --erase
|
||||||
@ -445,6 +449,7 @@ function bios_erase() {
|
|||||||
# erase the bios
|
# erase the bios
|
||||||
if [ "$BIOS_UPDATE" = "yes" -a -f "$BIOS_FILE" ]; then
|
if [ "$BIOS_UPDATE" = "yes" -a -f "$BIOS_FILE" ]; then
|
||||||
|
|
||||||
|
clear
|
||||||
echo "##### erasing BIOS #####"
|
echo "##### erasing BIOS #####"
|
||||||
usleep 1000000
|
usleep 1000000
|
||||||
flashrom --erase
|
flashrom --erase
|
||||||
|
Loading…
x
Reference in New Issue
Block a user