summaryrefslogtreecommitdiff
path: root/libre/bumblebee-libre/bumblebee.install
blob: 57aed6cc5e7d8854ac61f20ebd5d8561f39905d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
_notice() {
    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
}