Add operating system detection for linux/android
.
This commit is contained in:
parent
49354de8a5
commit
905e11c8fa
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue