Advertisement
tolikpunkoff

start-pxe

Mar 7th, 2019
828
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.58 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. echo "Starting TFTP server..."
  4. in.tftpd -s /home/pxe/tftp --secure -l -v -r blksize -m /etc/tftpd.rules --blocksize 1456
  5. sleep 5
  6.  
  7. echo "Copy DHCP daemon PXE config..."
  8. #pxe config must be in current dir.
  9. CURDIR=`pwd`
  10. cp "$CURDIR/dhcpd.conf" /etc/dhcpd.conf
  11. echo "Starting DHCP daemon..."
  12. dhcpd
  13. sleep 5
  14.  
  15. #winxp samba
  16. echo "Starting samba server"
  17. chmod 744 /etc/rc.d/rc.samba
  18. /etc/rc.d/rc.samba start
  19. sleep 5
  20.  
  21. #NFS for live linux
  22. echo "Starting NFS..."
  23. chmod 744 /etc/rc.d/rc.nfsd
  24. chmod 744 /etc/rc.d/rc.rpc
  25. /etc/rc.d/rc.nfsd start
  26. sleep 5
  27.  
  28. echo "Complete!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement