summaryrefslogtreecommitdiff
path: root/libre/bumblebee-libre/bumblebee.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-04-06 00:05:46 -0700
committerroot <root@rshg054.dnsready.net>2013-04-06 00:05:46 -0700
commitfd8249d016683ade99a23251d6ffdf5d5a3e76a4 (patch)
treede9e45e44e9a8ffb85bd8895dcec0ebcd34d17e3 /libre/bumblebee-libre/bumblebee.install
parent3c7a59bfd2b8340068df7dc196e0c9b612b9ef31 (diff)
Sat Apr 6 00:05:46 PDT 2013
Diffstat (limited to 'libre/bumblebee-libre/bumblebee.install')
-rw-r--r--libre/bumblebee-libre/bumblebee.install16
1 files changed, 16 insertions, 0 deletions
diff --git a/libre/bumblebee-libre/bumblebee.install b/libre/bumblebee-libre/bumblebee.install
new file mode 100644
index 000000000..57aed6cc5
--- /dev/null
+++ b/libre/bumblebee-libre/bumblebee.install
@@ -0,0 +1,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
+}