flash_uboot() { echo "A new U-Boot version can be flashed onto your install drive. Please use lsblk to determine your drive, before proceeding." echo "# dd if=/boot/u-boot-sunxi-with-spl-pinebook.bin of=/dev/mmcblkX bs=8k seek=1" } ## arg 1: the new package version post_install() { flash_uboot sed -i s/"LABEL=ROOT"/"LABEL=ROOT_MNJRO"/g /boot/extlinux/extlinux.conf } ## arg 1: the new package version ## arg 2: the old package version post_upgrade() { flash_uboot }