summaryrefslogtreecommitdiff
path: root/src/backend/setprofile.py
blob: 83293855b2245e34c6c149a61a2f32c71dad26b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/python3

import animation
import subprocess

@animation.wait('setting up hardened profile')
def start():
    eselectExec = subprocess.Popen(['eselect', 'profile', 'set', 'default/linux/amd64/17.0/hardened'])
    eselectExec.wait()
    envExec = subprocess.Popen(['env-update'], stdout=subprocess.DEVNULL)
    envExec.wait()