OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 2 # Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
4 # BSD-style license that can be found in the LICENSE.md file. | 4 # BSD-style license that can be found in the LICENSE.md file. |
5 # | 5 # |
6 # Script for preparing the Raspberry Pi2 image with the fletch agent. | 6 # Script for preparing the Raspberry Pi2 image with the fletch agent. |
7 # | 7 # |
8 # You need | 8 # You need |
9 # $ sudo apt-get qemu qemu-user-static binfmt-support | 9 # $ sudo apt-get qemu qemu-user-static binfmt-support |
10 # to run this. | 10 # to run this. |
11 # | 11 # |
12 # This must run in the fletch directory. | 12 # This must run in the fletch directory. |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 157 |
158 sudo umount $MOUNT_DIR | 158 sudo umount $MOUNT_DIR |
159 rmdir $MOUNT_DIR | 159 rmdir $MOUNT_DIR |
160 | 160 |
161 # Rename and zip the resulting image file. | 161 # Rename and zip the resulting image file. |
162 RESULT_IMAGE_ROOT=${IMAGE_ROOT_NAME}-fletch-${VERSION} | 162 RESULT_IMAGE_ROOT=${IMAGE_ROOT_NAME}-fletch-${VERSION} |
163 RESULT_IMAGE_FILE=${RESULT_IMAGE_ROOT}.img | 163 RESULT_IMAGE_FILE=${RESULT_IMAGE_ROOT}.img |
164 RESULT_IMAGE_ZIP_FILE=${RESULT_IMAGE_ROOT}.zip | 164 RESULT_IMAGE_ZIP_FILE=${RESULT_IMAGE_ROOT}.zip |
165 mv out/$IMAGE_FILE out/$RESULT_IMAGE_FILE | 165 mv out/$IMAGE_FILE out/$RESULT_IMAGE_FILE |
166 zip --junk-paths out/$RESULT_IMAGE_ZIP_FILE out/$RESULT_IMAGE_FILE | 166 zip --junk-paths out/$RESULT_IMAGE_ZIP_FILE out/$RESULT_IMAGE_FILE |
OLD | NEW |