tadd 9fs - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit cbbe23aa528ae65fd779baf386afb93293addce0
DIR parent 80f72cbedc7c0b60d2172ed83279585ad6079247
HTML Author: rsc <devnull@localhost>
Date: Fri, 18 Mar 2005 19:27:26 +0000
add 9fs
Diffstat:
M bin/.cvsignore | 4 ++++
A bin/9fs | 24 ++++++++++++++++++++++++
2 files changed, 28 insertions(+), 0 deletions(-)
---
DIR diff --git a/bin/.cvsignore b/bin/.cvsignore
t@@ -183,3 +183,7 @@ xd
yacc
yuv
zip
+Netfiles
+m4adec
+flacinfo
+srv
DIR diff --git a/bin/9fs b/bin/9fs
t@@ -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
+}
+