android_bootable_recovery/nandroid-md5.sh
Koushik Dutta 30a937a954 cwr 5
Change-Id: I70cbb4df78b0bbc9d227d19aa6d9434eba2b540d
2011-09-05 21:14:06 -07:00

12 lines
216 B
Bash
Executable File

#!/sbin/sh
cd $1
rm -f /tmp/nandroid.md5
md5sum * .* > /tmp/nandroid.md5
cp /tmp/nandroid.md5 .
# need this because wildcard seems to cause md5sum to return 1
if [ -f nandroid.md5 ]
then
return 0
else
return 1
fi