alarm/uboot-clearfog fix typo

This commit is contained in:
moonman 2016-06-05 18:53:18 -06:00
parent 6333777680
commit f14674fd88
2 changed files with 10 additions and 8 deletions

View file

@ -18,7 +18,7 @@ source=('u-boot-clearfog.tar.xz'
md5sums=('03b2a5122da09712abe8cf4d1740736a'
'0d5c13ccc7045af73de8685d4f961bb7'
'74553971c70ec14195955bbd579b63a6'
'b6f566f456c4a066c41b8706613fd8ec')
'34f19ed196fd3e1918188dab53ee0eba')
prepare() {

View file

@ -14,16 +14,18 @@
#
####################################
_device=$1
sd_fuse() {
####################################
# fusing images
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"
dd if=/dev/zero of=$1 bs=512 seek=1920 count=128
dd if=./clearfog.env of=$1 bs=512 seek=1920
dd if=/dev/zero of=$_device bs=512 seek=1920 count=128
dd if=./clearfog.env of=$_device bs=512 seek=1920
####################################
#<Message Display>
@ -62,17 +64,17 @@ EOF
}
if [ -z $1 ]
if [ -z $_device ]
then
echo "usage: ./sd_fusing.sh <SD Reader's device file>"
exit 0
fi
if [ -b $1 ]
if [ -b $_device ]
then
echo "$1 reader is identified."
echo "$_device reader is identified."
else
echo "$1 is NOT identified."
echo "$_device is NOT identified."
exit 0
fi