From 7fb550684b5eca45e75575e265b17ec9db1384b8 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Wed, 24 Feb 2016 00:56:40 -0300 Subject: uboot-udoo: add new package to [libre-testing] --- libre-testing/uboot-udoo/uboot-udoo.install | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 libre-testing/uboot-udoo/uboot-udoo.install (limited to 'libre-testing/uboot-udoo/uboot-udoo.install') diff --git a/libre-testing/uboot-udoo/uboot-udoo.install b/libre-testing/uboot-udoo/uboot-udoo.install new file mode 100644 index 000000000..9f535bae7 --- /dev/null +++ b/libre-testing/uboot-udoo/uboot-udoo.install @@ -0,0 +1,28 @@ +extlinux_warning() { + echo ">>> WARNING: for new entries, 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