From 2c83ecbd26706dbdaaa7ea9405cf9f3f7703f5ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Thu, 25 Feb 2016 03:23:06 -0300 Subject: rename uboot packages with Extlinux support to uboot4extlinux --- .../uboot4extlinux-udoo.install | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 libre-testing/uboot4extlinux-udoo/uboot4extlinux-udoo.install (limited to 'libre-testing/uboot4extlinux-udoo/uboot4extlinux-udoo.install') diff --git a/libre-testing/uboot4extlinux-udoo/uboot4extlinux-udoo.install b/libre-testing/uboot4extlinux-udoo/uboot4extlinux-udoo.install new file mode 100644 index 000000000..8a45c3b16 --- /dev/null +++ b/libre-testing/uboot4extlinux-udoo/uboot4extlinux-udoo.install @@ -0,0 +1,28 @@ +extlinux_warning() { + echo "==> WARNING: U-Boot uses Extlinux support to boot up. For setting it up, edit /boot/extlinux/extlinux.conf" +} + +flash_uboot() { + echo "A new U-Boot version needs to be flashed onto /dev/mmcblk0." + echo "Do you want to do this now? [y|N]" + read -r shouldwe + if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then + dd if=/boot/u-boot.imx of=/dev/mmcblk0 bs=512 seek=2 + sync + else + echo "You can do this later by running:" + echo "# dd if=/boot/u-boot.imx of=/dev/mmcblk0 bs=512 seek=2" + fi + extlinux_warning +} + +## arg 1: the new package version +post_install() { + flash_uboot +} + +## arg 1: the new package version +## arg 2: the old package version +post_upgrade() { + flash_uboot +} -- cgit v1.2.3-2-g168b