Skip to content
Snippets Groups Projects
Commit d5e52f80 authored by User0's avatar User0
Browse files

device-tolinopage2: fix post-upgrade for uboot

parent 17dd6551
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
DEV=`mount | sed -n -E 's:.*(/dev/mmcblk[0-9])p[0-9] on /boot .*:\1:p'`
if [ -n "$DEV" ] ; then
DEV=`cat /proc/mounts | sed -n -E 's:.*(/dev/mmcblk[0-9])p[0-9] on /boot .*:\1:p'`
if [ -e "$DEV" ]
then
dd if=/usr/share/u-boot/tolino-shine3/u-boot.imx bs=512 seek=2 of="$DEV"
else
echo Partition not found
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment