mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
add 9fs
This commit is contained in:
parent
80f72cbedc
commit
cbbe23aa52
2 changed files with 28 additions and 0 deletions
|
@ -183,3 +183,7 @@ xd
|
||||||
yacc
|
yacc
|
||||||
yuv
|
yuv
|
||||||
zip
|
zip
|
||||||
|
Netfiles
|
||||||
|
m4adec
|
||||||
|
flacinfo
|
||||||
|
srv
|
||||||
|
|
24
bin/9fs
Executable file
24
bin/9fs
Executable file
|
@ -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
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue