fix README for boxtools
+ fix line in sethostname.sh
This commit is contained in:
@ -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
|
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
|
`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
|
## config files
|
||||||
|
|
||||||
filename: cfg/(hostname)_(hexdigits).cfg
|
filename: cfg/(hostname)_(hexdigits).cfg
|
||||||
|
@ -7,7 +7,7 @@ if [ -z "$FOUND" ]; then
|
|||||||
else
|
else
|
||||||
FOUND=$(basename ${FOUND[0]}) # remove directory part
|
FOUND=$(basename ${FOUND[0]}) # remove directory part
|
||||||
HOSTNAME=${FOUND%%.*} # remove extension
|
HOSTNAME=${FOUND%%.*} # remove extension
|
||||||
if [ $HOSTNAME != "apu$BOXID" ]; then
|
if [ $HOSTNAME != "box$BOXID" ]; then
|
||||||
HOSTNAME=${HOSTNAME%_*}
|
HOSTNAME=${HOSTNAME%_*}
|
||||||
fi
|
fi
|
||||||
echo "hostname $HOSTNAME"
|
echo "hostname $HOSTNAME"
|
||||||
|
Reference in New Issue
Block a user