Advertisement
Infra_HDC

md5 cd calc

Jun 10th, 2011
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.31 KB | None | 0 0
  1. # читаем с диска и проверяем, совпал ли хеш данных с записанным
  2. mount /media/cdrom0
  3. cd /media/cdrom0
  4. if [ md5sum -c ${REGBAK_NAME}.tar.gz.md5 ];
  5. then echo "Target MD5 sum is OK!"
  6. else echo "Target MD5 sum is INCORRECT, burning failed!"
  7. fi
  8. cd
  9. umount /media/cdrom0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement