#!/bin/rc
# mount a specified track of an unfixed CD
# Fri Nov 19 09:57:33 EST 2004 Peter A. Cejchan <cej@gli.cas.cz | pac7@post.cz | pac@plan9.cz>
rfork e
if(! test -f /srv/9660)
9660srv >/dev/null </dev/null >[2]/dev/null
#if(! test -d /n/cd)
# {mkdir /n/cd}
unmount /n/cd >[2]/dev/null
for (i in /mnt/cd/*) unmount $i >[2]/dev/null
cdfs -d /dev/sdD0 >[2]/dev/null
if (mount -c /srv/9660 /n/cd /mnt/cd/d^$1)
ls /n/cd
if not echo ERROR MOUNTING TRACK
#
# -eof-
|