summaryrefslogtreecommitdiff
path: root/libre/uboot-udoo-linux-libre/uboot-udoo-dual-linux-libre.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-10-05 17:18:06 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-10-05 17:18:06 -0300
commitabc5fdb1ae2f4cd3cfd42c24ddfd76db8f4b86db (patch)
treea7774128af5b87d6143def64b575153c38c1dace /libre/uboot-udoo-linux-libre/uboot-udoo-dual-linux-libre.install
parent1a149512bc31629bfbc89cdf0da570ad3b1a2998 (diff)
downloadabslibre-abc5fdb1ae2f4cd3cfd42c24ddfd76db8f4b86db.tar.gz
abslibre-abc5fdb1ae2f4cd3cfd42c24ddfd76db8f4b86db.tar.bz2
abslibre-abc5fdb1ae2f4cd3cfd42c24ddfd76db8f4b86db.zip
uboot-udoo-linux-libre: fix install files
Diffstat (limited to 'libre/uboot-udoo-linux-libre/uboot-udoo-dual-linux-libre.install')
-rw-r--r--libre/uboot-udoo-linux-libre/uboot-udoo-dual-linux-libre.install23
1 files changed, 23 insertions, 0 deletions
diff --git a/libre/uboot-udoo-linux-libre/uboot-udoo-dual-linux-libre.install b/libre/uboot-udoo-linux-libre/uboot-udoo-dual-linux-libre.install
new file mode 100644
index 000000000..64a7695b0
--- /dev/null
+++ b/libre/uboot-udoo-linux-libre/uboot-udoo-dual-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-dual-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-dual-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
+}