pmaports/device/testing/u-boot-kobo-clara/u-boot-kobo-clara.post-upgrade
Andreas Kemnade f2808cb350
u-boot-kobo-clara: add upgrade script (MR 4550)
[ci:skip-build]: already built successfully in CI
2024-04-18 14:23:32 +02:00

6 lines
181 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/kobo-clara/u-boot.imx bs=512 seek=2 of="$DEV"
fi