summaryrefslogtreecommitdiff
path: root/~lukeshu/android-udev/android-udev.install
diff options
context:
space:
mode:
Diffstat (limited to '~lukeshu/android-udev/android-udev.install')
-rw-r--r--~lukeshu/android-udev/android-udev.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/~lukeshu/android-udev/android-udev.install b/~lukeshu/android-udev/android-udev.install
new file mode 100644
index 000000000..c861f2b70
--- /dev/null
+++ b/~lukeshu/android-udev/android-udev.install
@@ -0,0 +1,15 @@
+post_install() {
+getent group adbusers >> /dev/null || /usr/sbin/groupadd adbusers || return 1
+/bin/cat << EOF
+===> In order to use adb, you have to be in the 'adbusers' group
+===> For that, use: gpasswd -a USERNAME adbusers
+EOF
+}
+
+post_upgrade() {
+post_install
+}
+
+post_remove() {
+getent group adbusers &>/dev/null && /usr/sbin/groupdel adbusers
+}