summaryrefslogtreecommitdiff
path: root/libre/uboot-wandboard-linux-libre/uboot-wandboard-linux-libre.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-10-05 06:48:13 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-10-05 06:53:44 -0300
commitafa0e6e98bf8dbd69a553df340850e74e1d1481a (patch)
tree3b3ce3cf70e4c589d7390733ccade4d3c66db737 /libre/uboot-wandboard-linux-libre/uboot-wandboard-linux-libre.install
parent91aff038958f833a3aacbf2e98e6abc684611e3b (diff)
downloadabslibre-afa0e6e98bf8dbd69a553df340850e74e1d1481a.tar.gz
abslibre-afa0e6e98bf8dbd69a553df340850e74e1d1481a.tar.bz2
abslibre-afa0e6e98bf8dbd69a553df340850e74e1d1481a.zip
uboot-wandboard-linux-libre: add new package to [libre]
Diffstat (limited to 'libre/uboot-wandboard-linux-libre/uboot-wandboard-linux-libre.install')
-rw-r--r--libre/uboot-wandboard-linux-libre/uboot-wandboard-linux-libre.install23
1 files changed, 23 insertions, 0 deletions
diff --git a/libre/uboot-wandboard-linux-libre/uboot-wandboard-linux-libre.install b/libre/uboot-wandboard-linux-libre/uboot-wandboard-linux-libre.install
new file mode 100644
index 000000000..2166fcfc6
--- /dev/null
+++ b/libre/uboot-wandboard-linux-libre/uboot-wandboard-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/boot-wandboard-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/boot-wandboard-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
+}