diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-10-05 06:47:43 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-10-05 06:53:44 -0300 |
commit | 91aff038958f833a3aacbf2e98e6abc684611e3b (patch) | |
tree | 2f18f3422bcbd23ea6b1206f7d87426d93b799b3 /libre/uboot-usbarmory-linux-libre/uboot-usbarmory-linux-libre.install | |
parent | f47b7b94cb804c702adc5949f80838bd28153d3a (diff) |
uboot-usbarmory-linux-libre: add new package to [libre]
Diffstat (limited to 'libre/uboot-usbarmory-linux-libre/uboot-usbarmory-linux-libre.install')
-rw-r--r-- | libre/uboot-usbarmory-linux-libre/uboot-usbarmory-linux-libre.install | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libre/uboot-usbarmory-linux-libre/uboot-usbarmory-linux-libre.install b/libre/uboot-usbarmory-linux-libre/uboot-usbarmory-linux-libre.install new file mode 100644 index 000000000..6c0ddcf9e --- /dev/null +++ b/libre/uboot-usbarmory-linux-libre/uboot-usbarmory-linux-libre.install @@ -0,0 +1,22 @@ +flash_uboot() { + echo "A new U-Boot version needs to be flashed onto /dev/mmcblk0." + echo "Do this now? [y|N]" + read -r shouldwe + if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then + dd if=/boot/uboot-usbarmory-linux-libre/u-boot.imx of=/dev/mmcblk0 bs=512 seek=2 conv=fsync + else + echo "You can do this later by running:" + echo "# dd if=/boot/uboot-usbarmory-linux-libre/u-boot.imx of=/dev/mmcblk0 bs=512 seek=2 conv=fsync" + 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 +} |