Skip to content

Commit

Permalink
write $SERVER only if string is non-epmty
Browse files Browse the repository at this point in the history
the problem is that $SERVER is almost always empty, see
#118
for more info about this bug
  • Loading branch information
Mrfai committed May 23, 2023
1 parent 0c9a086 commit 120b39a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/get-boot-info
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,11 @@ setnet() {
IPADDR=$IPADDR
CIDR=$CIDR
GATEWAYS=$GATEWAYS
SERVER=$SERVER
EOF
fi
if [ -n "$SERVER" ]; then
echo "SERVER=$SERVER" >> $bootlog
fi

if [ -n "$DOMAIN" ]; then
# DOMAIN was specified on the kernel command line
Expand Down

0 comments on commit 120b39a

Please sign in to comment.