blob: 887152ed0237008907351a1faf5dbfd2b0548a19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/usr/bin/env bash
# Sisyphus-GUI is a simple frontend for libsisyphus
# Main Author : Ghiunhan Mamut @ Redcore Linux Project
if [[ -f /lib/gentoo/functions.sh ]] ; then
source /lib/gentoo/functions.sh
else
echo "Cannot import Gentoo functions, I will abort now!"
exit 1
fi
checkifroot() {
if [[ "$(whoami)" != root ]] ; then
eerror "I won't do that, unless you're root!"
exit 1
fi
}
main() {
if checkifroot; then
pushd /usr/share/sisyphus > /dev/null 2>&1
tmux new-session -d -s sisyphus 'python3 sisyphus-gui.py'
popd > /dev/null 2>&1
fi
}
main
|