Plan 9 from Bell Labs’s /usr/web/sources/contrib/quanstro/camera:

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/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

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.