summaryrefslogtreecommitdiffstats
path: root/meta-sota-raspberrypi/scripts/flash-image.sh
diff options
context:
space:
mode:
Diffstat (limited to 'meta-sota-raspberrypi/scripts/flash-image.sh')
-rwxr-xr-xmeta-sota-raspberrypi/scripts/flash-image.sh4
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
71set -euo pipefail 71set -euo pipefail
72 72
73DEVICE_TO_FLASH=$1 73DEVICE_TO_FLASH=$1
74IMAGE_TO_FLASH="${2-tmp/deploy/images/raspberrypi3/rpi-basic-image-raspberrypi3.rpi-sdimg-ota}" 74IMAGE_TO_FLASH="${2-tmp/deploy/images/raspberrypi3/rpi-basic-image-raspberrypi3.wic}"
75DEVICE_IS_REMOVABLE=$(cat /sys/block/$DEVICE_TO_FLASH/removable) 75DEVICE_IS_REMOVABLE=$(cat /sys/block/$DEVICE_TO_FLASH/removable)
76 76
77if [[ $DEVICE_IS_REMOVABLE != "1" ]]; then 77if [[ $DEVICE_IS_REMOVABLE != "1" ]]; then