platform.sh 339 B

123456789101112131415161718
  1. platform_check_image() {
  2. # i know no way to verify the image
  3. return 0;
  4. }
  5. platform_do_upgrade() {
  6. sync
  7. get_image "$1" | dd of=/dev/mmcblk0 bs=2M conv=fsync
  8. sleep 1
  9. }
  10. platform_copy_config() {
  11. mkdir -p /boot
  12. [ -f /boot/kernel.img ] || mount -t vfat -o rw,noatime /dev/mmcblk0p1 /boot
  13. cp -af "$CONF_TAR" /boot/
  14. sync
  15. umount /boot
  16. }