1
0

update 468 B

1234567891011121314151617181920
  1. #!/bin/rc
  2. if(~ $#fileserver 0) {
  3. echo set '$fileserver' >[1=2]
  4. exit no
  5. }
  6. if(~ $fileserver kfs) {
  7. echo pc/update shouldn''''t be run from kfs >[1=2]
  8. echo 'run:' >[1=2]
  9. echo ' fileserver=network-server pc/update' >[1=2]
  10. exit no
  11. }
  12. flag e +
  13. echo updating files
  14. 9fs $fileserver
  15. disk/mkfs -s /n/$fileserver /n/$fileserver/sys/lib/sysconfig/proto/portproto
  16. 9fat:
  17. cp /n/$fileserver/386/9pcdisk /n/9fat/9pcdisk
  18. cp /n/$fileserver/386/9load /n/9fat/9load
  19. unmount /n/9fat