1
0

rwd 349 B

1234567891011121314151617181920212223
  1. #!/bin/rc
  2. rfork e
  3. if(! ~ $#* 1){
  4. echo 'usage: remotesys=xxx rwd dir' >[1=2]
  5. exit usage
  6. }
  7. suf=''
  8. if(~ $#remotesys 1)
  9. suf = @$remotesys
  10. if not
  11. remotesys=''
  12. echo -n $1 >/dev/wdir
  13. b=`{basename $1}
  14. if(! ~ $#b 1)
  15. b=/
  16. echo -n $b^$suf >/dev/label
  17. if(test -f /dev/acme/ctl){
  18. echo name $1/-$remotesys >/dev/acme/ctl
  19. echo dumpdir $1 >/dev/acme/ctl
  20. }