diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/.cvsignore | 4 | ||||
-rwxr-xr-x | bin/9fs | 24 |
2 files changed, 28 insertions, 0 deletions
diff --git a/bin/.cvsignore b/bin/.cvsignore index 6793fc0d..39ab4385 100644 --- a/bin/.cvsignore +++ b/bin/.cvsignore @@ -183,3 +183,7 @@ xd yacc yuv zip +Netfiles +m4adec +flacinfo +srv diff --git a/bin/9fs b/bin/9fs new file mode 100755 index 00000000..13c61a63 --- /dev/null +++ b/bin/9fs @@ -0,0 +1,24 @@ +#!/usr/local/plan9/bin/rc + +if(! ~ $#* 1){ + echo 'usage: 9fs sysname' + exit usage +} + +fn srv1 { + if(! 9p stat $1 >/dev/null >[2=1]){ + rm -f $ns/$1 + srv $2 $1 + } +} + +ns=`{namespace} +switch($1){ +case tip + srv1 tip utumno.tip9ug.jp +case sources + srv1 sources sources.cs.bell-labs.com +case * + srv1 $1 $1 +} + |