1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-12-22 14:02:26 +02:00

reflash_ben.sh : add clean bootloader env command, update version

This commit is contained in:
Xiangfu Liu 2011-11-10 13:08:07 +08:00
parent 71ad57f500
commit 86b9b5ef97

View File

@ -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