From 26122843b24309f9d810dc0913cbae74abf4f34f Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Wed, 20 Mar 2024 09:07:58 +0100 Subject: [PATCH] fix README for boxtools + fix line in sethostname.sh --- README.md | 5 ++++- sethostname.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b18720b..d5b1beb 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Linux Box installation tools +# Installation tools for APUs and Raspberry Pi boxes The APU is a Linux box to be used as a control box at LIN sample environment @@ -6,6 +6,9 @@ The APU is a Linux box to be used as a control box at LIN sample environment `to_system/` contains the files to be installed in the system +We have also the Raspberry based PLC Iono Pi Max +and other Raspberry Pi based boxes. + ## config files filename: cfg/(hostname)_(hexdigits).cfg diff --git a/sethostname.sh b/sethostname.sh index 2c59b4b..8ea7dbf 100644 --- a/sethostname.sh +++ b/sethostname.sh @@ -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"