pinebook-tests/rc.local

41 lines
726 B
Bash
Executable File

#!/bin/bash -x
# mount /home/internal-mmc
echo
echo
echo STARTING PINEBOOK IMAGING IN 5 SECONDS
echo STARTING PINEBOOK IMAGING IN 5 SECONDS
echo STARTING PINEBOOK IMAGING IN 5 SECONDS
echo STARTING PINEBOOK IMAGING IN 5 SECONDS
echo STARTING PINEBOOK IMAGING IN 5 SECONDS
echo
echo CONTROL-C TO STOP
echo
echo Sleep 10
sleep 10
echo Sleep 10
sleep 10
echo Sleep 10
sleep 10
echo mount /dev/mmcblk0p2 /home/factory
mount /dev/mmcblk0p2 /home/factory
#exit
echo dd if=/home/factory/emmc.img.armbian of=/dev/mmcblk2
dd if=/home/factory/emmc.img.armbian of=/dev/mmcblk2 status=progress
echo sync
sync
echo
echo
echo INSTALL SUCCEEDED
echo INSTALL SUCCEEDED
echo INSTALL SUCCEEDED
echo INSTALL SUCCEEDED
echo
echo