diff --git a/alarm/uboot-clearfog/PKGBUILD b/alarm/uboot-clearfog/PKGBUILD index 102de0af9..c9c02b1e1 100644 --- a/alarm/uboot-clearfog/PKGBUILD +++ b/alarm/uboot-clearfog/PKGBUILD @@ -18,7 +18,7 @@ source=('u-boot-clearfog.tar.xz' md5sums=('03b2a5122da09712abe8cf4d1740736a' '0d5c13ccc7045af73de8685d4f961bb7' '74553971c70ec14195955bbd579b63a6' - 'b6f566f456c4a066c41b8706613fd8ec') + '34f19ed196fd3e1918188dab53ee0eba') prepare() { diff --git a/alarm/uboot-clearfog/sd_fusing.sh b/alarm/uboot-clearfog/sd_fusing.sh index 2cbd79b60..32318728f 100755 --- a/alarm/uboot-clearfog/sd_fusing.sh +++ b/alarm/uboot-clearfog/sd_fusing.sh @@ -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 #################################### # @@ -62,17 +64,17 @@ EOF } -if [ -z $1 ] +if [ -z $_device ] then echo "usage: ./sd_fusing.sh " 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