diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-09-19 13:31:59 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-09-19 13:32:31 -0400 |
commit | da805a9cb56999efeff0bc5367a3b8944262cce2 (patch) | |
tree | 3a100ba13870eba6d0b1fab9bd081857595516cc /pcr/android-udev/android-udev.install | |
parent | 77045c7a1e609b3a2ce0923229d234d779a1c8ed (diff) | |
download | abslibre-da805a9cb56999efeff0bc5367a3b8944262cce2.tar.gz abslibre-da805a9cb56999efeff0bc5367a3b8944262cce2.tar.bz2 abslibre-da805a9cb56999efeff0bc5367a3b8944262cce2.zip |
update android-udev, move it from ~lukeshu to pcr
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 +} |