Add operating system detection for linux/android.

This commit is contained in:
abbie 2024-11-13 16:40:07 +00:00
parent 49354de8a5
commit 905e11c8fa
Signed by: threeoh6000
GPG key ID: 801FE4AD456E922C

View file

@ -41,6 +41,9 @@ if [ "$subtype" = "android" ]; then
if [ -n "$(getprop ro.product.manufacturer)$(getprop ro.product.model)" ]; then if [ -n "$(getprop ro.product.manufacturer)$(getprop ro.product.model)" ]; then
machine="$(getprop ro.product.manufacturer) $(getprop ro.product.model)" machine="$(getprop ro.product.manufacturer) $(getprop ro.product.model)"
fi fi
if [ -n "$(getprop ro.build.version.release)" ]; then
distro="Android $(getprop ro.build.version.release)"
fi
fi fi
if [ "$system_type" = "openbsd" ]; then if [ "$system_type" = "openbsd" ]; then