Backend: allow infinite device.name<num>= device check properties (#34)

This commit is contained in:
osm0sis committed 2018-12-14 15:43:25 -04:00
1 parent fd881bd8d7
commit da8c2d1e6c
1 file changed
+1 -2
+1 -2
View File
@@ -94,8 +94,7 @@ if [ "$(file_getprop /tmp/anykernel/anykernel.sh do.devicecheck)" == 1 ]; then
ui_print "Checking device...";
device="$(getprop ro.product.device)";
product="$(getprop ro.build.product)";
for i in 1 2 3 4 5; do
testname="$(file_getprop /tmp/anykernel/anykernel.sh device.name$i)";
for testname in $($bb grep "^device.name.*=" /tmp/anykernel/anykernel.sh | $bb cut -d= -f2); do
test "$testname" || break;
if [ "$device" == "$testname" -o "$product" == "$testname" ]; then
ui_print "$testname";