run-minicluster.sh 532 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. if [ $# -lt 1 ]; then
  3. echo usage: $0 ethername
  4. exit 1
  5. fi
  6. ethif=$1
  7. trap : 2
  8. $HARVEY/util/ufs -root=$HARVEY &
  9. pids=$!
  10. #
  11. # install macports
  12. # port install tftp-hpa
  13. # port install dhcp
  14. # port install gcc49
  15. # port install x86_64-elf-gcc
  16. # port install x86_64-elf-binutils
  17. #
  18. sudo ifconfig $ethif 10.0.0.10/24
  19. sudo tftpd -vvvv -L --address 10.0.0.10 -s $HARVEY/cfg/pxe/tftpboot &
  20. pids="$pids $!"
  21. sudo dhcpd -d -cf $HARVEY/util/minicluster-dhcpd.conf -lf $HARVEY/util/minicluster-dhcpd.leases $ethif
  22. sudo kill $pids
  23. wait