Plan 9 from Bell Labs’s /usr/web/sources/contrib/pac/rc/bin/cd/mnttrack

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


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

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.