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 "You can do this by running:" echo "# dd if=/boot/u-boot-sunxi-with-spl-pinebook.bin of=/dev/mmcblkX bs=8k seek=1" } post_install() { flash_uboot if [ -f /boot/extlinux/extlinux.conf.pacsave ]; then mv /boot/extlinux/extlinux.conf.pacsave /boot/extlinux/extlinux.conf fi if [ -f /boot/extlinux/extlinux.conf ]; then echo "Keeping old extlinux.conf file..." else mkdir -p /boot/extlinux/ echo "LABEL Manjaro ARM KERNEL /Image FDT /dtbs/allwinner/sun50i-a64-pinebook.dtb APPEND initrd=/initramfs-linux.img console=tty1 console=ttyS0,115200 root=LABEL=ROOT_MNJRO rw rootwait bootsplash.bootfile=bootsplash-themes/manjaro/bootsplash" > /boot/extlinux/extlinux.conf fi } post_upgrade() { flash_uboot if [ -f /boot/extlinux/extlinux.conf.pacsave ]; then mv /boot/extlinux/extlinux.conf.pacsave /boot/extlinux/extlinux.conf fi if [ -f /boot/extlinux/extlinux.conf ]; then echo "Keeping old extlinux.conf file..." else mkdir -p /boot/extlinux/ echo "LABEL Manjaro ARM KERNEL /Image FDT /dtbs/allwinner/sun50i-a64-pinebook.dtb APPEND initrd=/initramfs-linux.img console=tty1 console=ttyS0,115200 root=LABEL=ROOT_MNJRO rw rootwait bootsplash.bootfile=bootsplash-themes/manjaro/bootsplash" > /boot/extlinux/extlinux.conf fi }