diff options
Diffstat (limited to 'bumblebee.install')
-rw-r--r-- | bumblebee.install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bumblebee.install b/bumblebee.install new file mode 100644 index 000000000000..1bc3a647ebbc --- /dev/null +++ b/bumblebee.install @@ -0,0 +1,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 +} |