From 22e36af03ddbd4e8949bb9f7f7b20a6054bbfeff Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Mon, 5 Oct 2015 04:41:55 -0300 Subject: uboot-udoo-linux-libre: add new package to [libre] --- .../uboot-udoo-linux-libre.install | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 libre/uboot-udoo-linux-libre/uboot-udoo-linux-libre.install (limited to 'libre/uboot-udoo-linux-libre/uboot-udoo-linux-libre.install') diff --git a/libre/uboot-udoo-linux-libre/uboot-udoo-linux-libre.install b/libre/uboot-udoo-linux-libre/uboot-udoo-linux-libre.install new file mode 100644 index 000000000..60c6fb6b5 --- /dev/null +++ b/libre/uboot-udoo-linux-libre/uboot-udoo-linux-libre.install @@ -0,0 +1,23 @@ +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/uboot-udoo-linux-libre/u-boot.imx of=/dev/mmcblk0 bs=512 seek=2 + sync + else + echo "You can do this later by running:" + echo "# dd if=/boot/uboot-udoo-linux-libre/u-boot.imx of=/dev/mmcblk0 bs=512 seek=2" + fi +} + +## 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-54-g00ecf