add preliminary android support
This commit is contained in:
parent
299078645f
commit
800356790d
2 changed files with 8 additions and 0 deletions
|
@ -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}')"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue