summaryrefslogtreecommitdiff
path: root/libre/uboot-wandboard-linux-libre/uboot-wandboard-solo-linux-libre.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-10-05 16:51:42 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-10-05 16:51:42 -0300
commit69cac6a08788460bc31b1157c5a03deb781801d0 (patch)
treef1f7d4c3a5589d74cecb782ffbb9a0e1326d5391 /libre/uboot-wandboard-linux-libre/uboot-wandboard-solo-linux-libre.install
parent502802883c8e82ba4ee52b7d304e5c666f14281b (diff)
uboot-wandboard-linux-libre: fix install files
Diffstat (limited to 'libre/uboot-wandboard-linux-libre/uboot-wandboard-solo-linux-libre.install')
-rw-r--r--libre/uboot-wandboard-linux-libre/uboot-wandboard-solo-linux-libre.install23
1 files changed, 23 insertions, 0 deletions
diff --git a/libre/uboot-wandboard-linux-libre/uboot-wandboard-solo-linux-libre.install b/libre/uboot-wandboard-linux-libre/uboot-wandboard-solo-linux-libre.install
new file mode 100644
index 000000000..1e5478371
--- /dev/null
+++ b/libre/uboot-wandboard-linux-libre/uboot-wandboard-solo-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-solo-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-solo-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
+}