db19cb63077d4555d6527546f670a614f515ac4a
4 trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
6 x
=$
(readlink
-f "$BASH_SOURCE"); cd ${x%/*}
10 usage: ${0##*/} [-h|--help] [HOSTNAME|IP|default]
12 Sets up tftp pxe config and nfs server on host "faiserver".
14 If our kernel has no nfs support, uses apache intead of nfs, and depends
15 on another repo of Ian Kelling, basic-https-conf, where the file is at
18 Usng this, you can boot into fai with pxe-kexec without changing
21 Argument sets the host to enable it for. No argument disables pxe
22 config for all hosts, but leaves nfs server alone. Use faiserver-disable
23 to disable the nfs server.
25 -S sets FAI_ACTION=sysinfo, and remove fai flag reboot.
26 Usefull for doing a system recovery.
27 -h|--help Print help and exit.
36 kgped16
=false
# default
37 temp
=$
(getopt
-l help hk
"$@") || usage
1
41 -k) kgped16
=true
; shift ;;
44 *) echo "$0: Internal error! unexpected args: $*" ; exit 1 ;;
49 host=$
(.
/chost faiserver
)
50 ssh root@
$host bash
-s -- "$@" <myfai-chboot-local