@@ -26,13 +26,13 @@ flash_rom() {
26
26
ROM=$1
27
27
if [ " $READ " -eq 1 ]; then
28
28
$CONFIG_FLASH_OPTIONS -r " ${ROM} " \
29
- || die " Backup to $ROM failed"
29
+ || recovery " Backup to $ROM failed"
30
30
else
31
31
cp " $ROM " /tmp/${CONFIG_BOARD} .rom
32
32
sha256sum /tmp/${CONFIG_BOARD} .rom
33
33
if [ " $CLEAN " -eq 0 ]; then
34
34
preserve_rom /tmp/${CONFIG_BOARD} .rom \
35
- || die " $ROM : Config preservation failed"
35
+ || recovery " $ROM : Config preservation failed"
36
36
fi
37
37
# persist serial number from CBFS
38
38
if cbfs.sh -r serial_number > /tmp/serial 2> /dev/null; then
@@ -51,7 +51,7 @@ flash_rom() {
51
51
52
52
warn " Do not power off computer. Updating firmware, this will take a few minutes..."
53
53
$CONFIG_FLASH_OPTIONS -w /tmp/${CONFIG_BOARD} .rom 2>&1 \
54
- || die " $ROM : Flash failed"
54
+ || recovery " $ROM : Flash failed"
55
55
fi
56
56
}
57
57
@@ -86,7 +86,7 @@ if [ "$READ" -eq 0 ] && [ "${ROM##*.}" = tgz ]; then
86
86
87
87
echo " Reading current flash and building an update image"
88
88
$CONFIG_FLASH_OPTIONS -r /tmp/flash.sh.bak \
89
- || die " Read of flash has failed"
89
+ || recovery " Read of flash has failed"
90
90
91
91
# ROM and bootblock already have ECC
92
92
bootblock=$( echo /tmp/verified_rom/* .bootblock)
0 commit comments