3 # Setup dhcp server to point to tftp server,
4 # and depending on the type, setup the tftp server.
7 # default distro is the base debian/fedora type. others are fai & arch
10 trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?"' ERR
17 dhcp-option-force=209,boot/syslinux/archiso.cfg
18 dhcp-option-force=210,/arch/
19 dhcp-boot=/arch/boot/syslinux/lpxelinux.0
26 tftp-root=/mnt/usb/tftpboot
33 dhcp-boot=fai/pxelinux.0,faiserver.lan,faiserver.lan
38 $action |
ssh wrt
"cedit pxe-server /etc/dnsmasq.conf || /etc/init.d/dnsmasq restart
39 if [[ $action == arch ]]; then arch-pxe-mount; fi"