X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=pxe-server;h=bba53e6cbfbc462d7b824ef2454f413ad330bcef;hb=17ef86e0555e0c8db46708b9833da4f4591e74be;hp=9e74eeb757a030c9a367fabb3c8440597188d043;hpb=83828fe2683227f4d8ecb2343eff28439741b490;p=automated-distro-installer diff --git a/pxe-server b/pxe-server index 9e74eeb..bba53e6 100755 --- a/pxe-server +++ b/pxe-server @@ -31,16 +31,10 @@ usage() { Usage: ${0##*/} [OPTIONS] [HOST TYPE] Configure dnsmasq pxe server options and fai-chboot if appropriate. - Without HOST TYPE, disable pxe server and fai server. -TYPE is one of arch, plain, fai. -HOST is a hostname known to the dhcp server, or default for all -Note, when switching between plain and arch, you will need to -do something like: -ssh wrt -cd /mnt/usb -rm tftpboot -ln -s tftpboot + +HOST A hostname known to the dhcp server, or default for all. +TYPE One of arch, plain, fai. -r Don't redeploy fai config. For example, if there is a different host @@ -56,6 +50,14 @@ ln -s tftpboot -h|--help Print help and exit +Note, when switching between plain and arch, you will need to +do something like: +ssh wrt +cd /mnt/usb +rm tftpboot +ln -s tftpboot + + Note: Uses GNU getopt options parsing style EOF exit $1 @@ -63,7 +65,6 @@ EOF ##### begin command line parsing ######## -args=() redep=true acks=2 wait=false @@ -80,7 +81,7 @@ while true; do esac done -read host type <<<"$@" +read -r host type <<<"$@" case $# in 0|2);; @@ -120,7 +121,6 @@ EOF fai() { cat </dev/null ||: fi fi