Add Raspberry Pi OS 64-bit Detection
This commit is contained in:
parent
264f4188e3
commit
608144d76f
1 changed files with 9 additions and 0 deletions
|
|
@ -441,6 +441,13 @@ class Shell:
|
|||
"""
|
||||
return platform.machine() == "armv8l"
|
||||
|
||||
@staticmethod
|
||||
def is_arm64():
|
||||
"""
|
||||
Check if Platform.machine() returns ARM 64
|
||||
"""
|
||||
return platform.machine() == "aarch64"
|
||||
|
||||
@staticmethod
|
||||
def get_arch():
|
||||
"""Return a string containing the architecture"""
|
||||
|
|
@ -470,6 +477,8 @@ class Shell:
|
|||
for opsys in os_releases:
|
||||
if opsys in release_file:
|
||||
release = opsys
|
||||
if release == "Debian" and os.path.exists("/etc/rpi-issue"):
|
||||
release = "Raspbian"
|
||||
if os.path.isdir(os.path.expanduser("~/.kano-settings")) or os.path.isdir(
|
||||
os.path.expanduser("~/.kanoprofile")
|
||||
):
|
||||
|
|
|
|||
Loading…
Reference in a new issue