android_bootable_recovery/nandroid-md5.sh

12 lines
216 B
Bash
Raw Permalink Normal View History

2010-04-01 19:21:10 +00:00
#!/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