Account for different property names returned by getprop
This commit is contained in:
parent
e9e167f3af
commit
dc5dd9433e
|
@ -1,8 +1,10 @@
|
||||||
#!/system/bin/sh
|
#!/system/bin/sh
|
||||||
|
|
||||||
BASE_DIR=$(dirname $0)
|
BASE_DIR=$(dirname $0)
|
||||||
|
ABIS=$(getprop ro.system.product.cpu.abilist)
|
||||||
|
ABIS=${ABIS:-$(getprop ro.product.cpu.abilist)}
|
||||||
|
|
||||||
for LIB_DIR in $BASE_DIR/lib/{$(getprop ro.system.product.cpu.abilist)}; do
|
for LIB_DIR in $BASE_DIR/lib/{$ABIS}; do
|
||||||
[ -d "$LIB_DIR" ] && break
|
[ -d "$LIB_DIR" ] && break
|
||||||
unset -v LIB_DIR
|
unset -v LIB_DIR
|
||||||
done
|
done
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
#!/system/bin/sh
|
#!/system/bin/sh
|
||||||
|
|
||||||
BASE_DIR=$(dirname $0)
|
BASE_DIR=$(dirname $0)
|
||||||
|
ABIS=$(getprop ro.system.product.cpu.abilist)
|
||||||
|
ABIS=${ABIS:-$(getprop ro.product.cpu.abilist)}
|
||||||
|
|
||||||
for LIB_DIR in $BASE_DIR/lib/{$(getprop ro.system.product.cpu.abilist)}; do
|
for LIB_DIR in $BASE_DIR/lib/{$ABIS}; do
|
||||||
[ -d "$LIB_DIR" ] && break
|
[ -d "$LIB_DIR" ] && break
|
||||||
unset -v LIB_DIR
|
unset -v LIB_DIR
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue
Block a user