#!/bin/rc if(~ $#* 0){ echo 'usage: $patch/applied patch-name' >[1=2] exit usage } . /rc/bin/apatch/defs mountfs test -e /n/dist/386 || bind / /n/dist || fail no dist if(~ 0 1){ must mkdir -p /n/dist/dist/patch echo $1 >>/n/dist/dist/$patch/applied cd .. rm -rf /n/dist/dist/$patch/$1 }