diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-07-10 13:53:33 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-07-10 13:53:33 +0100 |
commit | 687968f9375def610d8730610dc48291346061a6 (patch) | |
tree | 928be78e8b331b8d8c6b91049147c29887a2a579 /src/backend/setprofile.py | |
parent | 5ef298d50edc3c2d7f90150afd3a711a8c3cae68 (diff) |
sisyphus backend : arm64 specific bitsv4.2107.0
Diffstat (limited to 'src/backend/setprofile.py')
-rw-r--r-- | src/backend/setprofile.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/backend/setprofile.py b/src/backend/setprofile.py index a0b16ad..a5d6480 100644 --- a/src/backend/setprofile.py +++ b/src/backend/setprofile.py @@ -1,11 +1,18 @@ #!/usr/bin/python3 import animation +import platform import subprocess -@animation.wait('setting up hardened profile') +@animation.wait('setting up profile') def start(): - eselectExec = subprocess.Popen(['eselect', 'profile', 'set', 'default/linux/amd64/17.1/hardened']) - eselectExec.wait() + if platform.uname()[4] == 'x86_64': + eselectExec = subprocess.Popen(['eselect', 'profile', 'set', 'default/linux/amd64/17.1/hardened']) + eselectExec.wait() + + if platform.uname()[4] == 'aarch64': + eselectExec = subprocess.Popen(['eselect', 'profile', 'set', 'default/linux/arm64/17.0']) + eselectExec.wait() + envExec = subprocess.Popen(['env-update'], stdout=subprocess.DEVNULL) envExec.wait() |