#!/bin/rc # freeze a fossil for preservation # fossilize [partition] rfork e fossil=$1 if(~ $fossil '') fossil=/dev/sdC0/fossil part=`{ls /dev/fs/9fat /dev/sd*/9fat >[2]/dev/null} if(~ $#part 0) { echo '9fat?' >[1=2] exit no.9fat } part=$part(1) if(! test -f /srv/dos) dossrv >/dev/null [2]/dev/null unmount /n/9fat >/dev/null >[2]/dev/null mount -c /srv/dos /n/9fat $part unmount /n/9 >/dev/null >[2]/dev/null mount -c /srv/dos /n/9 $part if(! test -e /n/9fat/plan9.ini){ echo '9fat?' exit no.plan9ini } if(test -e /bin/fossilast) last=`{fossilast $fossil} if not last=`{fossil/last $fossil} if(! ~ $last vac*){ echo 'no score?!' exit no.score } echo $last $fossil $venti >>/n/9fat/rootscor echo $last $fossil $venti exit ''