1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-24 20:38:57 +02:00

change the way of check wget error, which is more common

This commit is contained in:
Xiangfu Liu 2010-11-25 22:01:04 +08:00
parent f0e4744b09
commit 3a8c23997b

View File

@ -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}" \