Fixed some minor issues

This commit is contained in:
Gerhard Hoffmann 2022-06-02 22:37:26 +02:00
parent c428602aa8
commit c184da74b6

15
opkg.sh
View File

@ -241,28 +241,29 @@ read_atbqt_version () {
version=$(/tmp/opt/app/ATBAPP/ATBQT -v)
version=(${version// / })
# ATB APP: Version: 20221220_1038_00318q git describe: 4.5.2-65-gf1799aa3_00318/Nexobility_dev
# printf "%s\n" "${version[@]}"
if [ ${#version[@]} -lt 7 ]; then
printf "ERROR %s has wrong format\n" "${version[@]}" >&2
return 1
fi
version=("${version[3]}" "${version[6]}")
echo ${version[@]}
echo "${version[3]} ${version[6]}"
}
# xxx=`read_atbqt_version`
# echo $xxx
check_atbqt_version () {
if `download_opkg_package "atbqt" "atbqt_1.0.0-r1_cortexa9t2hf-neon.ipk"`; then
if ! `download_opkg_package "atbqt" "atbqt_1.0.0-r1_cortexa9t2hf-neon.ipk"`; then
return 1
fi
if `ar_extract_opkg_package_data "atbqt_1.0.0-r1_cortexa9t2hf-neon.ipk"`; then
if ! `ar_extract_opkg_package_data "atbqt_1.0.0-r1_cortexa9t2hf-neon.ipk"`; then
return 1
fi
if `tar_extract_opkg_package_data "/tmp" "data.tar.xz" "opt/app/ATBAPP/ATBQT"`; then
if ! `tar_extract_opkg_package_data "/tmp" "data.tar.xz" "opt/app/ATBAPP/ATBQT"`; then
return 1
fi
@ -275,5 +276,5 @@ check_atbqt_version () {
return 1
}
check_atbqt_version "20221220_1038_00318q" "4.5.2-65-gf1799aa3_00318/Nexobility_dev"
# check_atbqt_version "20221220_1038_00318q" "4.5.2-65-gf1799aa3_00318/Nexobility_dev"