1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 03:50:37 +02:00

reflash_ben.sh: update some info. use bzip2 -d instead of tar xf

Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
This commit is contained in:
Xiangfu Liu 2010-11-20 23:25:56 +08:00
parent 3bf4717895
commit 478bfd64ec

9
data/qi_lb60/scripts/reflash_ben.sh Normal file → Executable file
View File

@ -36,7 +36,7 @@ do
l) l)
WORKING_DIR=$OPTARG WORKING_DIR=$OPTARG
PROTOCOL="file" PROTOCOL="file"
VERSION= VERSION="Local"
;; ;;
*) *)
echo "\ echo "\
@ -80,9 +80,8 @@ abort() {
log "$1" log "$1"
log "===" log "==="
log "Before reporting this as a bug" log "Before reporting this as a bug"
log "please ensure you're using the latest available version of" log "Please ensure you're using the latest available version of this reflash script"
log " this reflash script" log "http://downloads.qi-hardware.com/software/images/NanoNote/Ben/reflash_ben.sh"
log " the xburst-tools"
exit 1 exit 1
} }
@ -124,7 +123,7 @@ if [ "$PROTOCOL" == "http" ]; then
-a "${LOG_FILE}" \ -a "${LOG_FILE}" \
-P "${WORKING_DIR}" \ -P "${WORKING_DIR}" \
"${BASE_URL_HTTP}/${VERSION}/${ROOTFS}.bz2" && \ "${BASE_URL_HTTP}/${VERSION}/${ROOTFS}.bz2" && \
(cd ${WORKING_DIR}; tar xf ${ROOTFS}.bz2) (cd ${WORKING_DIR}; bzip2 -d ${ROOTFS}.bz2)
if [ "$?" == "8" ]; then if [ "$?" == "8" ]; then
log "fetching .ubi rootfs..." log "fetching .ubi rootfs..."