fix README for boxtools

+ fix line in sethostname.sh
This commit is contained in:
2024-03-20 09:07:58 +01:00
parent 7f661bb314
commit 26122843b2
2 changed files with 5 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ if [ -z "$FOUND" ]; then
else
FOUND=$(basename ${FOUND[0]}) # remove directory part
HOSTNAME=${FOUND%%.*} # remove extension
if [ $HOSTNAME != "apu$BOXID" ]; then
if [ $HOSTNAME != "box$BOXID" ]; then
HOSTNAME=${HOSTNAME%_*}
fi
echo "hostname $HOSTNAME"