add command to copy rules file to udev folder, fixed symlink with full-path (realative path did not work for me on Ubuntu 16.04)

This commit is contained in:
Giang Nguyen 2017-11-14 12:43:18 +07:00
parent d91c7c776a
commit 9fad32e199
1 changed files with 4 additions and 2 deletions

View File

@ -16,8 +16,10 @@ On Arch it should be enough to follow the [instructions for connecting a device
# Clone this repository
git clone https://github.com/M0Rf30/android-udev-rules.git
# Create a sym-link to the rules file
sudo ln -s android-udev-rules/51-android.rules /etc/udev/rules.d/51-android.rules
# Copy rules file
cp -v ./android-udev-rules/51-android.rules /etc/udev/rules.d/51-android.rules
# OR oreate a sym-link to the rules file
sudo ln -sf $PWD/android-udev-rules/51-android.rules /etc/udev/rules.d/51-android.rules
# Change file permissions
sudo chmod a+r /etc/udev/rules.d/51-android.rules
# add the adbusers group if it's doesn't already exist