mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
alarm/uboot-clearfog fix typo
This commit is contained in:
parent
6333777680
commit
f14674fd88
2 changed files with 10 additions and 8 deletions
|
@ -18,7 +18,7 @@ source=('u-boot-clearfog.tar.xz'
|
||||||
md5sums=('03b2a5122da09712abe8cf4d1740736a'
|
md5sums=('03b2a5122da09712abe8cf4d1740736a'
|
||||||
'0d5c13ccc7045af73de8685d4f961bb7'
|
'0d5c13ccc7045af73de8685d4f961bb7'
|
||||||
'74553971c70ec14195955bbd579b63a6'
|
'74553971c70ec14195955bbd579b63a6'
|
||||||
'b6f566f456c4a066c41b8706613fd8ec')
|
'34f19ed196fd3e1918188dab53ee0eba')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
|
|
||||||
|
|
|
@ -14,16 +14,18 @@
|
||||||
#
|
#
|
||||||
####################################
|
####################################
|
||||||
|
|
||||||
|
_device=$1
|
||||||
|
|
||||||
sd_fuse() {
|
sd_fuse() {
|
||||||
####################################
|
####################################
|
||||||
# fusing images
|
# fusing images
|
||||||
|
|
||||||
echo "u-boot fusing version $1"
|
echo "u-boot fusing version $1"
|
||||||
dd if=./u-boot-clearfog.mmc of=$1 bs=512 seek=1
|
dd if=./u-boot-clearfog.$1.mmc of=$_device bs=512 seek=1
|
||||||
|
|
||||||
echo "u-boot environemnt fusing"
|
echo "u-boot environemnt fusing"
|
||||||
dd if=/dev/zero of=$1 bs=512 seek=1920 count=128
|
dd if=/dev/zero of=$_device bs=512 seek=1920 count=128
|
||||||
dd if=./clearfog.env of=$1 bs=512 seek=1920
|
dd if=./clearfog.env of=$_device bs=512 seek=1920
|
||||||
|
|
||||||
####################################
|
####################################
|
||||||
#<Message Display>
|
#<Message Display>
|
||||||
|
@ -62,17 +64,17 @@ EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if [ -z $1 ]
|
if [ -z $_device ]
|
||||||
then
|
then
|
||||||
echo "usage: ./sd_fusing.sh <SD Reader's device file>"
|
echo "usage: ./sd_fusing.sh <SD Reader's device file>"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -b $1 ]
|
if [ -b $_device ]
|
||||||
then
|
then
|
||||||
echo "$1 reader is identified."
|
echo "$_device reader is identified."
|
||||||
else
|
else
|
||||||
echo "$1 is NOT identified."
|
echo "$_device is NOT identified."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue