add preliminary android support

This commit is contained in:
abbie 2024-11-13 16:23:19 +00:00
parent 299078645f
commit 800356790d
Signed by: threeoh6000
GPG key ID: 801FE4AD456E922C
2 changed files with 8 additions and 0 deletions

View file

@ -37,6 +37,10 @@ if [ "$subtype" = "proxmox" ]; then
fi fi
fi fi
fi fi
if [ "$subtype" = "android" ]; then
machine="$(getprop ro.product.manufacturer) $(getprop ro.product.model)"
fi
if [ "$system_type" = "openbsd" ]; then if [ "$system_type" = "openbsd" ]; then
if [ "$hasawk" -eq 1 ]; then if [ "$hasawk" -eq 1 ]; then
distro="revision $(sysctl kern.osrevision | awk -F "=" '{print $2}')" distro="revision $(sysctl kern.osrevision | awk -F "=" '{print $2}')"

View file

@ -12,6 +12,10 @@ if [ "$(uname -s)" = "Linux" ] && [ "$system_type" = "unknown" ]; then
if [ "$?" -eq 0 ] && [ "$subtype" = "none" ]; then if [ "$?" -eq 0 ] && [ "$subtype" = "none" ]; then
subtype="proxmox" subtype="proxmox"
fi fi
command -v getprop >>/dev/null
if [ "$?" -eq 0 ] && [ "$subtype" = "none" ]; then
subtype="android"
fi
fi fi
if [ "$(uname -s)" = "OpenBSD" ] && [ "$system_type" = "unknown" ]; then if [ "$(uname -s)" = "OpenBSD" ] && [ "$system_type" = "unknown" ]; then
system_type="openbsd" system_type="openbsd"