diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-09-20 16:18:17 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-09-20 16:18:17 -0300 |
commit | a15e19cb5254a876b22065a3c7ec24124429c51c (patch) | |
tree | 0a1f97c83e0f6a65d410c9bc603e1891fca3977c /pcr/android-udev/android-udev.install | |
parent | 27a3b01f9a5cd93e2cefb9bafed26a6ce404a0a4 (diff) | |
parent | de974812574e5aca6b197da8b8bb40597e69fe73 (diff) |
Merge branch 'master' of vparabola:abslibre
Diffstat (limited to 'pcr/android-udev/android-udev.install')
-rw-r--r-- | pcr/android-udev/android-udev.install | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pcr/android-udev/android-udev.install b/pcr/android-udev/android-udev.install new file mode 100644 index 000000000..dcb1ebc20 --- /dev/null +++ b/pcr/android-udev/android-udev.install @@ -0,0 +1,12 @@ +post_install() { + post_upgrade + echo "NOTE: To use adb as a normal user you have to add yourself to the adbusers group" +} + +post_upgrade() { + { getent group adbusers || /usr/sbin/groupadd adbusers; } &>/dev/null +} + +post_remove() { + getent group adbusers &>/dev/null && /usr/sbin/groupdel adbusers +} |