From: Benjamin Huntsman <BHuntsman <at> mail2.cu-portland.edu>
Subject: Re: aquarela only uses /rc/bin/9fs?
Newsgroups: gmane.os.plan9.general
Date: 2008-08-21 15:39:01 GMT (1 year, 1 week, 6 days, 15 hours and 1 minute ago)
>The trick you want is in /rc/bin/service/startcifs - this may not be exactly
>the code  you want but it demonstrates the technique you need.
>
>-Steve

startcifs didn't work quite like what I had in mind, so I ended up modifying /rc/bin/9fs.  The excerpt below
gives me exactly what I wanted:

...
case wiki
     srv -m 'net!plan9.bell-labs.com!wiki' wiki /mnt/wiki
case *
     switch($#*){
     case 1
          # Help out auarela:
          for(i in /usr/*) if($1=`{basename $i}){
               bind -ac /usr/$1 /n/$1
               exit
          }
          srv -m $1
     case *
...
Attachment (winmail.dat): application/ms-tnef, 2656 bytes