alarm/uboot-odroid-xu3 to 2016.07-2

This commit is contained in:
Kevin Mihelich 2016-08-20 20:58:18 +00:00
parent 1503c2f16f
commit c8008b9253
2 changed files with 8 additions and 3 deletions

View file

@ -5,7 +5,7 @@ buildarch=4
pkgname=uboot-odroid-xu3
pkgver=2016.07
pkgrel=1
pkgrel=2
pkgdesc="U-Boot for ODROID-XU3"
arch=('armv7h')
url='http://www.denx.de/wiki/U-Boot/WebHome'

View file

@ -36,8 +36,13 @@ sd_fuse() {
}
flash_uboot() {
major=$(mountpoint -d / | cut -f 1 -d ':')
minor=$(expr $(mountpoint -d / | cut -f 2 -d ':') - 1)
if mountpoint -d /boot > /dev/null 2>&1; then
base=/boot
else
base=/
fi
major=$(mountpoint -d $base | cut -f 1 -d ':')
minor=$(expr $(mountpoint -d $base | cut -f 2 -d ':') - 1)
device=$(cat /proc/partitions | awk {'if ($1 == "'${major}'" && $2 == "'${minor}'") print $4 '})
echo "A new U-Boot version needs to be flashed onto /dev/${device}."