1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 00:07:11 +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 011732f7ce
commit d3e685ddf9

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