diff options
-rwxr-xr-x | meta-sota-raspberrypi/scripts/flash-image.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-sota-raspberrypi/scripts/flash-image.sh b/meta-sota-raspberrypi/scripts/flash-image.sh index 74707bc..9692137 100755 --- a/meta-sota-raspberrypi/scripts/flash-image.sh +++ b/meta-sota-raspberrypi/scripts/flash-image.sh | |||
@@ -55,7 +55,7 @@ if [ -z "$1" ]; then | |||
55 | echo " Example: sdb" | 55 | echo " Example: sdb" |
56 | echo "" | 56 | echo "" |
57 | echo " imagefile : An image file generated by bitbake (optional)." | 57 | echo " imagefile : An image file generated by bitbake (optional)." |
58 | echo " Default: ./tmp/deploy/images/raspberrypi3/rpi-basic-image-raspberrypi3.rpi-sdimg-ota" | 58 | echo " Default: ./tmp/deploy/images/raspberrypi3/rpi-basic-image-raspberrypi3.wic" |
59 | echo "" | 59 | echo "" |
60 | echo " The following utilities are prerequisites:" | 60 | echo " The following utilities are prerequisites:" |
61 | echo "" | 61 | echo "" |
@@ -71,7 +71,7 @@ fi | |||
71 | set -euo pipefail | 71 | set -euo pipefail |
72 | 72 | ||
73 | DEVICE_TO_FLASH=$1 | 73 | DEVICE_TO_FLASH=$1 |
74 | IMAGE_TO_FLASH="${2-tmp/deploy/images/raspberrypi3/rpi-basic-image-raspberrypi3.rpi-sdimg-ota}" | 74 | IMAGE_TO_FLASH="${2-tmp/deploy/images/raspberrypi3/rpi-basic-image-raspberrypi3.wic}" |
75 | DEVICE_IS_REMOVABLE=$(cat /sys/block/$DEVICE_TO_FLASH/removable) | 75 | DEVICE_IS_REMOVABLE=$(cat /sys/block/$DEVICE_TO_FLASH/removable) |
76 | 76 | ||
77 | if [[ $DEVICE_IS_REMOVABLE != "1" ]]; then | 77 | if [[ $DEVICE_IS_REMOVABLE != "1" ]]; then |