SHARE
TWEET

start-pxe

tolikpunkoff Mar 7th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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!"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top