summaryrefslogtreecommitdiff
path: root/uboot-pinebook.install
blob: 2d33ecc6060ef654262a55afbbd3dc1f00eeb306 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
}