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