summarylogtreecommitdiffstats
path: root/bumblebee.install
blob: 1bc3a647ebbce776c9c68aee718ffe6ea52755cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
_notice() {
    echo "For optirun to work, you need to install at least virtualgl or primus"
    echo "Don't forget to add yourself to the 'bumblebee' group to use Bumblebee"
}

post_upgrade() {
    getent group "bumblebee" &>/dev/null || groupadd -r bumblebee
}

post_remove() {
    getent group "bumblebee" &>/dev/null && groupdel bumblebee 1>/dev/null
}

post_install() {
    post_upgrade
    _notice
}