From d3e685ddf9ba736f10ed5ac4895a910ee2894cbb Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Thu, 25 Nov 2010 22:01:04 +0800 Subject: [PATCH] change the way of check wget error, which is more common --- data/qi_lb60/scripts/reflash_ben.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/qi_lb60/scripts/reflash_ben.sh b/data/qi_lb60/scripts/reflash_ben.sh index 034318d54..209b034e7 100755 --- a/data/qi_lb60/scripts/reflash_ben.sh +++ b/data/qi_lb60/scripts/reflash_ben.sh @@ -125,7 +125,7 @@ if [ "$PROTOCOL" == "http" ]; then "${BASE_URL_HTTP}/${VERSION}/${ROOTFS}.bz2" && \ (cd ${WORKING_DIR}; bzip2 -d ${ROOTFS}.bz2) - if [ "$?" == "8" ]; then + if [ "$?" != "0" ]; then log "fetching .ubi rootfs..." wget \ -a "${LOG_FILE}" \