mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-22 10:13:07 +02:00
reflash_ben.sh : add clean bootloader env command, update version
This commit is contained in:
parent
71ad57f500
commit
86b9b5ef97
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
# version of me
|
||||
__VERSION__="2011-08-19"
|
||||
__VERSION__="2011-11-11"
|
||||
|
||||
# use 'http' to download and flash images, use 'file' to flash images present in the <WORKING_DIR>
|
||||
PROTOCOL="http"
|
||||
@ -214,6 +214,10 @@ fi
|
||||
log "booting device..."
|
||||
usbboot -c "boot" >> "${LOG_FILE}" || abort "can't boot device - xburst-tools setup correctly? device in boot-mode? device connected?"
|
||||
|
||||
if [ "$ALL" == "TRUE" ]; then
|
||||
log "clean bootloader env data ..."
|
||||
usbboot -c "nerase 2 2 0 0" >> "${LOG_FILE}" 2>&1
|
||||
fi
|
||||
if [ "$B" == "TRUE" ]; then
|
||||
log "flashing bootloader..."
|
||||
progress_prepare
|
||||
|
Loading…
Reference in New Issue
Block a user