pmaports/device/testing/u-boot-tolino-shine3/u-boot-tolino-shine3.post-upgrade
Andreas Kemnade 2d1f6bd541
device: tolino-* add extlinux support (MR 5067)
makes u-boot env / script installation  unnecessary.
2024-04-27 08:32:56 +09:00

6 lines
184 B
Bash

#!/bin/sh
DEV=`mount | sed -n -E 's:.*(/dev/mmcblk[0-9])p[0-9] on /boot .*:\1:p'`
if [ -n "$DEV" ] ; then
dd if=/usr/share/u-boot/tolino-shine3/u-boot.imx bs=512 seek=2 of="$DEV"
fi