Minor issues.
This commit is contained in:
parent
c184da74b6
commit
2547a9c365
13
opkg.sh
13
opkg.sh
@ -253,13 +253,13 @@ read_atbqt_version () {
|
|||||||
}
|
}
|
||||||
# xxx=`read_atbqt_version`
|
# xxx=`read_atbqt_version`
|
||||||
# echo $xxx
|
# echo $xxx
|
||||||
|
# set -x
|
||||||
check_atbqt_version () {
|
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
|
return 1
|
||||||
fi
|
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
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -270,11 +270,14 @@ check_atbqt_version () {
|
|||||||
version=`read_atbqt_version`
|
version=`read_atbqt_version`
|
||||||
version=(${version// / })
|
version=(${version// / })
|
||||||
|
|
||||||
if [ "${version[0]}" = "$1" ] && [ "${version[1]}" = "$2" ]; then
|
if [ "${version[0]}" = "$3" ] && [ "${version[1]}" = "$4" ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
return 1
|
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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user