summaryrefslogtreecommitdiff
path: root/src/backend/setprofile.py
blob: a0b16ad9aa354c0240991c1ff5f334bbbd6ebedb (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.1/hardened'])
    eselectExec.wait()
    envExec = subprocess.Popen(['env-update'], stdout=subprocess.DEVNULL)
    envExec.wait()