Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Run services necessary for booting Porteus Kiosk over the network.
- # Path to folder where Kiosk ISO is unpacked/mounted:
- PXEDATA=/home/guest/kiosk-pxe
- # HTTP server IP address:
- IP=192.168.1.34
- # Port on which the HTTP daemon is listening:
- PORT=8090
- # Start the DHCP server and the TFTP server:
- killall dnsmasq 2>/dev/null
- dnsmasq --enable-tftp --tftp-root=$PXEDATA/boot --dhcp-boot=pxelinux.0,"$IP",$IP --dhcp-range=$(echo $IP | cut -d. -f1-3).50,$(echo $IP | cut -d. -f1-3).250,infinite --log-dhcp
- # Start the HTTP daemon:
- killall webfsd 2>/dev/null
- webfsd -i $IP -p $PORT -r $PXEDATA -u nobody -g nogroup >/dev/null
- # Enable packet forwarding so pxe clients can connect to the internet:
- echo 1 > /proc/sys/net/ipv4/ip_forward
- echo "PXE services for Porteus Kiosk should be started now."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement