amx-mst701/scripts/upload_and_flash.sh
2024-12-18 13:57:56 +01:00

7 lines
226 B
Bash
Executable File

#!/bin/bash
echo "Uploading..."
scp uImage-with-dtb alarm@amx-tablet:/tmp/uImage
echo "Flashing and rebooting..."
ssh alarm@amx-tablet 'sudo dd if=/tmp/uImage of=/dev/mmcblk0 bs=512 seek=2048 conv=notrunc; sync; sudo reboot'