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