Plan 9 from Bell Labs’s /usr/web/sources/contrib/pac/rc/bin/cd/check

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc
# compare CD against its iso image in $home/cd.iso 
# Tue May 17 08:10:40 MET 2005 Peter A. Cejchan <cej@gli.cas.cz | pac7@post.cz>

rfork e
kill cdfs | rc
cdfs -d /dev/sdD0
#if (! cmp  `{sum cd.iso} `{sum /mnt/cd/d000}) echo BURNING ERROR
sha1sum < cd.iso > /tmp/foo1
sha1sum < /mnt/cd/d000 > /tmp/foo2
if (! cmp  /tmp/foo1 /tmp/foo2) echo BURNING ERROR
cat /tmp/foo1
cat /tmp/foo2
rm -fr  /tmp/foo1 /tmp/foo2
# -eof-

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.