flash_uboot() { echo "A new U-Boot version needs to be flashed onto your install drive." echo "Please use lsblk to determine your drive, before proceeding." echo "You can flash the new U-Boot by running:" echo "# dd if=/boot/idbloader.img of=/dev/mmcblkX seek=64 conv=notrunc" echo "# dd if=/boot/u-boot.itb of=/dev/mmcblkX seek=16384 conv=notrunc" } ## 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 }