From 3ecb2ca77e89034d8871074743bff6f2400e1c73 Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Wed, 8 Jun 2011 08:07:01 +0800 Subject: [PATCH] nanonote-files: reflash_ben.sh using -O in wget --- nanonote-files/data/qi_lb60/scripts/reflash_ben.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/nanonote-files/data/qi_lb60/scripts/reflash_ben.sh b/nanonote-files/data/qi_lb60/scripts/reflash_ben.sh index c238ec6..9d063f0 100755 --- a/nanonote-files/data/qi_lb60/scripts/reflash_ben.sh +++ b/nanonote-files/data/qi_lb60/scripts/reflash_ben.sh @@ -1,6 +1,6 @@ #!/bin/bash # version of me -__VERSION__="2011-06-01" +__VERSION__="2011-06-07" # use 'http' to download and flash images, use 'file' to flash images present in the PROTOCOL="http" @@ -168,21 +168,21 @@ if [ "$PROTOCOL" == "http" ]; then log "fetching bootloader..." wget \ -a "${LOG_FILE}" \ - -P "${WORKING_DIR}" \ + -O "${WORKING_DIR}/${LOADER}" \ "${BASE_URL_HTTP}/${VERSION}/${LOADER}" fi if [ "$K" == "TRUE" ]; then log "fetching kernel..." wget \ -a "${LOG_FILE}" \ - -P "${WORKING_DIR}" \ + -O "${WORKING_DIR}/${KERNEL}" \ "${BASE_URL_HTTP}/${VERSION}/${KERNEL}" fi if [ "$R" == "TRUE" ]; then log "try fetching .ubi.bz2 rootfs..." wget \ -a "${LOG_FILE}" \ - -P "${WORKING_DIR}" \ + -O "${WORKING_DIR}/${ROOTFS}.bz2" \ "${BASE_URL_HTTP}/${VERSION}/${ROOTFS}.bz2" && \ (cd ${WORKING_DIR}; bzip2 -d ${ROOTFS}.bz2) @@ -190,7 +190,7 @@ if [ "$PROTOCOL" == "http" ]; then log "fetching .ubi rootfs..." wget \ -a "${LOG_FILE}" \ - -P "${WORKING_DIR}" \ + -O "${WORKING_DIR}/${ROOTFS}" \ "${BASE_URL_HTTP}/${VERSION}/${ROOTFS}" fi fi @@ -236,3 +236,7 @@ if [ "$ALL" == "TRUE" ]; then fi log "done" + +########## ChangeLog ############### +### 2011-06-07 + # using -O in wget \ No newline at end of file