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
13 echo "$0: error: exptected 1 argument of type"
20 dhcp-option-force=209,boot/syslinux/archiso.cfg
21 dhcp-option-force=210,/arch/
22 dhcp-boot=/arch/boot/syslinux/lpxelinux.0
27 # if arch was used before, this additionally needs
28 # the tftp link in /mnt/usb to be changed.
31 tftp-root=/mnt/usb/tftpboot
38 dhcp-boot=fai/pxelinux.0,faiserver.lan,faiserver.lan
43 $action |
ssh wrt
"cedit pxe-server /etc/dnsmasq.conf || /etc/init.d/dnsmasq restart
44 if [[ $action == arch ]]; then arch-pxe-mount; fi"