platform.sh 293 B

1234567891011121314151617
  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. mount -t vfat -o rw,noatime /dev/mmcblk0p1 /mnt
  12. cp -af "$CONF_TAR" /mnt/
  13. sync
  14. umount /mnt
  15. }