Re-enable Android check

/system/build.prop is an essential and appearently Android-exclusive file, so this check should be quite reliable.
This commit is contained in:
darealshinji
2016-07-14 11:57:03 +02:00
committed by GitHub
parent ce75a4d099
commit ded651c99b

View File

@@ -4847,15 +4847,15 @@ if [[ "$overrideDisplay" ]]; then
fi
# Check for android
#if type -p getprop >/dev/null 2>&1; then
# distro="Android"
# detectmem
# detectuptime
# detectkernel
# detectdroid
# infoDisplay
# exit 0
#fi
if [ -f /system/build.prop ]; then
distro="Android"
detectmem
detectuptime
detectkernel
detectdroid
infoDisplay
exit 0
fi
for i in "${display[@]}"; do
if [[ ! "$i" == "" ]]; then