Update auto-update.sh

This commit is contained in:
mab-wien 2021-05-01 22:30:51 +02:00 committed by GitHub
parent 5f4c8395b1
commit 08fa5f8a73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ echo "System Version: $VERSION"
echo "Target: $OPENWRT_BOARD"
MODEL="$(jsonfilter -e '@.model.id' <"/etc/board.json" | tr ',' '_')"
echo "Model: $MODEL"
MODELNAME="$(cat /etc/board.json | jsonfilter -e '@.model.name' | /bin/sed 's/-//g' | tr ' ' '-' | /bin/sed 's/-/_/' | awk '{print tolower($0)}')";
MODELNAME="$(cat /etc/board.json | jsonfilter -e '@.model.name' | /bin/sed 's/^\([^\ ]\+\)-/\1/' | tr ' ' '-' | /bin/sed 's/-/_/' | awk '{print tolower($0)}')";
echo "MODELNAME: $MODELNAME"