| 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 for easy installation of the | 6 # Script for preparing the Raspberry Pi2 image for easy installation of the |
| 7 # fletch agent. All this script does is basically to comment out a few lines | 7 # fletch agent. All this script does is basically to comment out a few lines |
| 8 # in /etc/fstab and /etc/ld.so.preload. | 8 # in /etc/fstab and /etc/ld.so.preload. |
| 9 # | 9 # |
| 10 # It is expected that the script producing the actual release image will remove | 10 # It is expected that the script producing the actual release image will remove |
| 11 # the comment characters to reenable the full system for running on the pi. | 11 # the comment characters to reenable the full system for running on the pi. |
| 12 # | 12 # |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 sudo mount $1 -o loop,offset=$((122880*512)),rw $MOUNT_DIR | 53 sudo mount $1 -o loop,offset=$((122880*512)),rw $MOUNT_DIR |
| 54 | 54 |
| 55 echo "Fixing ld.so.preload" | 55 echo "Fixing ld.so.preload" |
| 56 sudo sed -i 's/^/#/' $MOUNT_DIR/etc/ld.so.preload | 56 sudo sed -i 's/^/#/' $MOUNT_DIR/etc/ld.so.preload |
| 57 | 57 |
| 58 echo "Fixing fstab" | 58 echo "Fixing fstab" |
| 59 sudo sed -i '/mmcblk/s/^/#/g' $MOUNT_DIR/etc/fstab | 59 sudo sed -i '/mmcblk/s/^/#/g' $MOUNT_DIR/etc/fstab |
| 60 | 60 |
| 61 echo "Umounting" | 61 echo "Umounting" |
| 62 sudo umount $MOUNT_DIR | 62 sudo umount $MOUNT_DIR |
| OLD | NEW |