deploy_local.sh 400 B

1234567891011121314
  1. if [ -z "$target" ];
  2. then
  3. echo "Please set target"
  4. exit
  5. fi
  6. echo "Creating /mnt/tmp directory on $target"
  7. ssh root@$target "mkdir -p /mnt/tmp/; mount /dev/mmcblk1p1 /mnt/tmp;"
  8. echo "Copying files to $target"
  9. scp imx6y2c-em500-512m-emmc.Rev.C.dtb root@$target:/mnt/tmp/
  10. scp zImage root@$target:/mnt/tmp/
  11. echo "Mount & Unmount"
  12. ssh root@$target "sync; umount /mnt/tmp; rmdir /mnt/tmp; reboot;"