Minor issues.

This commit is contained in:
Gerhard Hoffmann 2022-06-02 22:45:08 +02:00
parent c184da74b6
commit 2547a9c365

13
opkg.sh
View File

@ -253,13 +253,13 @@ read_atbqt_version () {
}
# xxx=`read_atbqt_version`
# echo $xxx
# set -x
check_atbqt_version () {
if ! `download_opkg_package "atbqt" "atbqt_1.0.0-r1_cortexa9t2hf-neon.ipk"`; then
if ! `download_opkg_package "$1" "$2"`; 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 "$2"`; then
return 1
fi
@ -270,11 +270,14 @@ check_atbqt_version () {
version=`read_atbqt_version`
version=(${version// / })
if [ "${version[0]}" = "$1" ] && [ "${version[1]}" = "$2" ]; then
if [ "${version[0]}" = "$3" ] && [ "${version[1]}" = "$4" ]; then
return 0
fi
return 1
}
# check_atbqt_version "20221220_1038_00318q" "4.5.2-65-gf1799aa3_00318/Nexobility_dev"
check_atbqt_version "atbqt" \
"atbqt_1.0.0-r1_cortexa9t2hf-neon.ipk" \
"20221220_1038_00318q" \
"4.5.2-65-gf1799aa3_00318/Nexobility_dev"