summaryrefslogtreecommitdiff
path: root/~lukeshu/android-udev/android-udev.install
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-12-11 18:49:46 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-12-11 18:49:46 -0500
commit5c561163133e61dc311355389556e2b2d0664c13 (patch)
treeb90c180384d4b7e3143445327e3f62d76b11d6f2 /~lukeshu/android-udev/android-udev.install
parent00d7d1f1b8496cfe48fa7c41070309304b1ae75d (diff)
downloadabslibre-5c561163133e61dc311355389556e2b2d0664c13.tar.gz
abslibre-5c561163133e61dc311355389556e2b2d0664c13.tar.bz2
abslibre-5c561163133e61dc311355389556e2b2d0664c13.zip
mv ./~aur/* ./~lukeshu
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
+}