ec299e47b734a14cf56752247f439700305a299c
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.
8 # for no pxe server, use a no-op like : or true.
11 trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
14 echo "$0: error: exptected 1 argument of type"
21 dhcp-option-force=209,boot/syslinux/archiso.cfg
22 dhcp-option-force=210,/arch/
23 dhcp-boot=/arch/boot/syslinux/lpxelinux.0
28 # if arch was used before, this additionally needs
29 # the tftp link in /mnt/usb to be changed.
32 tftp-root=/mnt/usb/tftpboot
39 dhcp-boot=fai/pxelinux.0,faiserver.lan,faiserver.lan
44 $action |
ssh wrt
"cedit pxe-server /etc/dnsmasq.conf || /etc/init.d/dnsmasq restart
45 if [[ $action == arch ]]; then arch-pxe-mount; fi"