Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "Starting TFTP server..."
- in.tftpd -s /home/pxe/tftp --secure -l -v -r blksize -m /etc/tftpd.rules --blocksize 1456
- sleep 5
- echo "Copy DHCP daemon PXE config..."
- #pxe config must be in current dir.
- CURDIR=`pwd`
- cp "$CURDIR/dhcpd.conf" /etc/dhcpd.conf
- echo "Starting DHCP daemon..."
- dhcpd
- sleep 5
- #winxp samba
- echo "Starting samba server"
- chmod 744 /etc/rc.d/rc.samba
- /etc/rc.d/rc.samba start
- sleep 5
- #NFS for live linux
- echo "Starting NFS..."
- chmod 744 /etc/rc.d/rc.nfsd
- chmod 744 /etc/rc.d/rc.rpc
- /etc/rc.d/rc.nfsd start
- sleep 5
- echo "Complete!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement