summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Wise <phil@advancedtelematic.com>2018-03-08 11:50:03 +0100
committerPhil Wise <phil@advancedtelematic.com>2018-03-08 11:50:03 +0100
commit8db7c9833133f1b67d3a2b4d39ff8f0906bf2334 (patch)
treed4dd05db8c7e81505338f86749a3496d78297692
parentdd1ecd8b3973677bea6b4e060c1e1d737b22ee61 (diff)
downloadmeta-updater-8db7c9833133f1b67d3a2b4d39ff8f0906bf2334.tar.gz
Fix name of R-Pi image in 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