diff options
Diffstat (limited to 'src/backend/setprofile.py')
-rw-r--r-- | src/backend/setprofile.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/backend/setprofile.py b/src/backend/setprofile.py new file mode 100644 index 0000000..3a7f5e3 --- /dev/null +++ b/src/backend/setprofile.py @@ -0,0 +1,18 @@ +#!/usr/bin/python3 + +import animation +import platform +import subprocess + +@animation.wait('setting up profile') +def cliExec(): + 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() |