diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-01-07 00:56:11 +0100 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-02-02 21:44:32 +0100 |
commit | 1f2f68301569e4918d2d1da122ff241f93561ab8 (patch) | |
tree | 1ab8bd5a44e9a3ef70d29da275b8fc88c864d3b5 /libre/uboot4extlinux-sunxi | |
parent | c8418a7c3da71975aa555d2748693749222cc759 (diff) | |
download | abslibre-1f2f68301569e4918d2d1da122ff241f93561ab8.tar.gz abslibre-1f2f68301569e4918d2d1da122ff241f93561ab8.tar.bz2 abslibre-1f2f68301569e4918d2d1da122ff241f93561ab8.zip |
uboot4extlinux-sunxi: .install: make u-boot image path configurable
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'libre/uboot4extlinux-sunxi')
-rw-r--r-- | libre/uboot4extlinux-sunxi/uboot4extlinux-sunxi.install | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libre/uboot4extlinux-sunxi/uboot4extlinux-sunxi.install b/libre/uboot4extlinux-sunxi/uboot4extlinux-sunxi.install index 46f8304cd..799856f1a 100644 --- a/libre/uboot4extlinux-sunxi/uboot4extlinux-sunxi.install +++ b/libre/uboot4extlinux-sunxi/uboot4extlinux-sunxi.install @@ -1,5 +1,7 @@ +_image="/boot/u-boot/images/u-boot-sunxi-with-spl.bin" + flash_instructions() { - echo "# dd if=/boot/u-boot/images/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8" + echo "# dd if=${_image} of=/dev/mmcblk0 bs=1024 seek=8" } extlinux_warning() { @@ -14,7 +16,7 @@ flash_uboot() { echo "Do you want to do this now? [y|N]" read -r shouldwe if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then - dd if=/boot/u-boot/images/u-boot-sunxi-with-spl.bin of=$root bs=1024 seek=8 + dd "if=${_image}" "of=${root}" bs=1024 seek=8 else echo "You can do this later by running:" flash_instructions |