plan9fox/usr/glenda/bin/rc/pull
cinap_lenrek 45bab89362 livecd
2011-04-11 19:47:05 +00:00

18 lines
272 B
Bash
Executable file

#!/bin/rc
rfork e
flags=()
while(! ~ $#* 0 && ~ $1 -*){
if(~ $1 -c -s){
flags=($flags $1)
shift
}
flags=($flags $1)
shift
}
if(test -f /srv/kfs.cmd)
disk/kfscmd allow
replica/pull -v $flags /dist/replica/network $*
if(test -f /srv/kfs.cmd)
disk/kfscmd disallow