Skip to content

Commit

Permalink
fix handling of unregistered and unpartitioned clients.
Browse files Browse the repository at this point in the history
  • Loading branch information
HappyBasher committed Nov 15, 2023
1 parent dad2efa commit 3f61f9c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions linbofs/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# License: GPL V2
#
# thomas@linuxmuster.net
# 20231110
# 20231116
#

# If you don't have a "standalone shell" busybox, enable this:
Expand Down Expand Up @@ -113,12 +113,11 @@ do_env(){
done
source /.env
# check if school network is present and set further environment accordingly
if [ -n "$HOSTGROUP" ]; then
# add linboserver to environment if not set on kernel cl
if [ -z "$LINBOSERVER" ]; then
echo "export LINBOSERVER='"${SERVERID}"'" >> /.env
export LINBOSERVER="${SERVERID}"
fi
if [ -z "$LINBOSERVER" -a "$HOSTNAME" = "pxeclient" ]; then
echo "export LINBOSERVER='"${SERVERID}"'" >> /.env
export LINBOSERVER="${SERVERID}"
fi
if [ -n "$LINBOSERVER" ]; then
# add fqdn to environment
echo "export FQDN='"${HOSTNAME}.${DOMAIN}"'" >> /.env
export FQDN="${HOSTNAME}.${DOMAIN}"
Expand Down

0 comments on commit 3f61f9c

Please sign in to comment.