summaryrefslogtreecommitdiff
path: root/libre/bumblebee/bumblebee.install
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-09-03 19:33:30 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-09-03 19:33:30 -0300
commite3a7dc162f12e6bf80f7a7ac34987627aa7940cc (patch)
treec15cb25a6fdd7b3b7bbee98f8902c4718506b42f /libre/bumblebee/bumblebee.install
parentf0904a8ec337c31e3ca052660db0930e0b212358 (diff)
downloadabslibre-e3a7dc162f12e6bf80f7a7ac34987627aa7940cc.tar.gz
abslibre-e3a7dc162f12e6bf80f7a7ac34987627aa7940cc.tar.bz2
abslibre-e3a7dc162f12e6bf80f7a7ac34987627aa7940cc.zip
rename to bumblebee
Diffstat (limited to 'libre/bumblebee/bumblebee.install')
-rw-r--r--libre/bumblebee/bumblebee.install16
1 files changed, 16 insertions, 0 deletions
diff --git a/libre/bumblebee/bumblebee.install b/libre/bumblebee/bumblebee.install
new file mode 100644
index 000000000..57aed6cc5
--- /dev/null
+++ b/libre/bumblebee/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
+}