diff options
| -rw-r--r-- | modules.d/slx-network/hooks/parse-ipxe-network-kcl.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules.d/slx-network/hooks/parse-ipxe-network-kcl.sh b/modules.d/slx-network/hooks/parse-ipxe-network-kcl.sh index 3dfd7edd..fec160a8 100644 --- a/modules.d/slx-network/hooks/parse-ipxe-network-kcl.sh +++ b/modules.d/slx-network/hooks/parse-ipxe-network-kcl.sh @@ -45,7 +45,9 @@ parse_kcl() { # if not boot server was given, use slxsrv if [ -z "$bootsrv" ]; then kclsrv="$(getarg slxsrv=)" - [ -n "$kclsrc" ] && bootsrv="$kclsrv" + if [ -n "$kclsrv" ]; then + declare -g bootsrv="$kclsrv" + fi fi # calculate network mask |
