#!/bin/rc rfork en . funcs target=plan9-usb disk=/tmp/$target.img.bz2 import -c -k user'='$dst_user $dst_host $dst_dir /n/web || exit import cp $disk /n/web/_$target.img.bz2 mv /n/web/_$target.img /n/web/$target.img.bz2 echo `{date} md5 `{md5sum <$disk} \ sha1 `{sha1sum <$disk} \ $target.img.bz2 >>/n/web/usbchecksums.txt rm $disk