python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / odroid-c2-uboot / patches / 0002-sd_fusing-tweaks.patch
bloba69c2e13d8b60a1e6b0aad2ae40c7c1cb528f8f2
1 From 12983d91742d4b981d032b94a5349427670b2cc9 Mon Sep 17 00:00:00 2001
2 From: Kevin Mihelich <kevin@archlinuxarm.org>
3 Date: Wed, 3 Feb 2016 20:59:26 -0700
4 Subject: [PATCH 2/4] sd_fusing tweaks
6 ---
7 sd_fuse/sd_fusing.sh | 13 ++++++-------
8 1 file changed, 6 insertions(+), 7 deletions(-)
10 --- sd_fuse/sd_fusing.sh
11 +++ sd_fuse/sd_fusing.sh
12 @@ -15,20 +15,19 @@ if [ -z $1 ]; then
15 if [ ! -f $BL1 ]; then
16 - echo "error: $BL1 is not exist"
17 + echo "error: $BL1 does not exist"
18 exit 1
21 if [ ! -f $UBOOT ]; then
22 - echo "error: $UBOOT is not exist"
23 + echo "error: $UBOOT does not exist"
24 exit 1
27 -sudo dd if=$BL1 of=$1 conv=fsync bs=1 count=442
28 -sudo dd if=$BL1 of=$1 conv=fsync bs=512 skip=1 seek=1
29 -sudo dd if=$UBOOT of=$1 conv=fsync bs=512 seek=97
30 +dd if=$BL1 of=$1 conv=fsync bs=1 count=442
31 +dd if=$BL1 of=$1 conv=fsync bs=512 skip=1 seek=1
32 +dd if=$UBOOT of=$1 conv=fsync bs=512 seek=97
34 sync
36 -sudo eject $1
37 -echo Finished.
38 +echo "Successfully wrote U-Boot to $1"
39 --
40 2.7.1