Skip to content

Commit 5162de6

Browse files
author
Xiangfu Liu
committedMar 1, 2012
reflash_m1.sh: update to 03-01, use the latest bios-rescue
1 parent 5b99e06 commit 5162de6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎scripts/reflash_m1.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# version of me
4-
__VERSION__="2012-02-28"
4+
__VERSION__="2012-03-01"
55
echo -e "File name: $0\t version: ${__VERSION__}"
66

77

@@ -184,12 +184,12 @@ call-create-bios () {
184184
REMAIN_TMP="remain.tmp"
185185

186186
mkdir -p ${MAC_DIR}
187+
mkdir -p `dirname ${BIOS_RESCUE_WITHOUT_CRC}`
187188

188-
if [ ! -f "${BIOS_RESCUE_WITHOUT_CRC}" ]; then
189-
mkdir -p `dirname ${BIOS_RESCUE_WITHOUT_CRC}`
190-
call-wget "${BIOS_RESCUE_WITHOUT_CRC}" http://milkymist.org/updates/2011-11-29/for-rc3/bios-rescue-without-CRC.bin
191-
fi
189+
rm -f "${BIOS_RESCUE_WITHOUT_CRC}"
192190

191+
call-wget "${BIOS_RESCUE_WITHOUT_CRC}" \
192+
http://downloads.qi-hardware.com/software/images/Milkymist_One/latest/bios-rescue-without-CRC.bin
193193

194194
dd if="${BIOS_RESCUE_WITHOUT_CRC}" of=${MAC_DIR}/${HEAD_TMP} bs=8 count=28
195195
dd if="${BIOS_RESCUE_WITHOUT_CRC}" of=${MAC_DIR}/${REMAIN_TMP} bs=8 skip=29

0 commit comments

Comments
 (0)