#!/bin/rc
rfork e
mount /srv/usb /n/usb
d = /n/usb/sd*
d = $d(1)
n = `{disk/fdisk -p $d/data}
if(test -f /srv/usbstorage)
rm /srv/usbstorage
if(~ $n '')
dossrv -f $d/data usbstorage
if not
dossrv -f $d/data:$n(3) usbstorage
mount /srv/usbstorage /n/camera
|