From f54a1a3443572f89f8f7e223df0bcd9dc1ddd76b Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Sat, 20 Nov 2010 23:25:56 +0800 Subject: [PATCH] reflash_ben.sh: update some info. use bzip2 -d instead of tar xf Signed-off-by: Xiangfu Liu --- data/qi_lb60/scripts/reflash_ben.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) mode change 100644 => 100755 data/qi_lb60/scripts/reflash_ben.sh diff --git a/data/qi_lb60/scripts/reflash_ben.sh b/data/qi_lb60/scripts/reflash_ben.sh old mode 100644 new mode 100755 index f1de72b05..727605aa5 --- a/data/qi_lb60/scripts/reflash_ben.sh +++ b/data/qi_lb60/scripts/reflash_ben.sh @@ -36,7 +36,7 @@ do l) WORKING_DIR=$OPTARG PROTOCOL="file" - VERSION= + VERSION="Local" ;; *) echo "\ @@ -80,9 +80,8 @@ abort() { log "$1" log "===" log "Before reporting this as a bug" - log "please ensure you're using the latest available version of" - log " this reflash script" - log " the xburst-tools" + log "Please ensure you're using the latest available version of this reflash script" + log "http://downloads.qi-hardware.com/software/images/NanoNote/Ben/reflash_ben.sh" exit 1 } @@ -124,7 +123,7 @@ if [ "$PROTOCOL" == "http" ]; then -a "${LOG_FILE}" \ -P "${WORKING_DIR}" \ "${BASE_URL_HTTP}/${VERSION}/${ROOTFS}.bz2" && \ - (cd ${WORKING_DIR}; tar xf ${ROOTFS}.bz2) + (cd ${WORKING_DIR}; bzip2 -d ${ROOTFS}.bz2) if [ "$?" == "8" ]; then log "fetching .ubi rootfs..."