summaryrefslogtreecommitdiff
path: root/pcr/android-udev/android-udev.install
blob: dcb1ebc200dce91eb009ecdf07a9a9b42736cdd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
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
}