summaryrefslogtreecommitdiff
path: root/uboot-pinebook.install
blob: 801363dc9aa50ee8a67b5e766b46d4eec5e3b4e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
flash_uboot() {
  echo "Install new bootloader by running:"
  echo "# dd if=/boot/u-boot-sunxi-with-spl-pinebook.bin of=/dev/mmcblk0 bs=8k seek=1 for Pinebook SD"
  echo "# dd if=/boot/u-boot-sunxi-with-spl-pinebook.bin of=/dev/mmcblk2 bs=8k seek=1 for Pinebook eMMC"
}

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