flash_uboot() {
  echo "Install new bootloader by running:"
  echo "# dd if=/boot/u-boot-sunxi-with-spl-nanopi-neo-plus2.bin of=/dev/mmcblk0 bs=8k seek=1 for NanoPi Neo Plus2 SD"
}

## 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
}
