flash_uboot() {
  echo "A new U-Boot version needs to be flashed our install drive. Please use lsblk to determine your drive, before proceeding."
    echo "You can do this by running:"
    echo "# dd if=/boot/u-boot.bin of=/dev/mmcblkX conv=fsync,notrunc bs=442 count=1"
    echo "# dd if=/boot/u-boot.bin of=/dev/mmcblkX conv=fsync,notrunc bs=512 skip=1 seek=1"
  }

## arg 1:  the new package version
post_install() {
  flash_uboot
}

## arg 1:  the new package version
## arg 2:  the old package version
post_upgrade() {
  flash_uboot
}
 
