Update bluetooth docs & add udev rules (#92)

* Update bluetooth docs

* add udev rules

* Add cmp to build

* Create bluetooth.md
This commit is contained in:
Pascal Vizeli
2018-07-10 10:11:58 +02:00
committed by GitHub
parent 7cffb1f45b
commit 5ce7331001
4 changed files with 40 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
KERNEL=="ttyAMA[01]", PROGRAM="/bin/sh -c '\
ALIASES=/proc/device-tree/aliases; \
if cmp -s $ALIASES/uart0 $ALIASES/serial0; then \
echo 0;\
elif cmp -s $ALIASES/uart0 $ALIASES/serial1; then \
echo 1; \
else \
exit 1; \
fi\
'", SYMLINK+="serial%c"
KERNEL=="ttyS0", PROGRAM="/bin/sh -c '\
ALIASES=/proc/device-tree/aliases; \
if cmp -s $ALIASES/uart1 $ALIASES/serial0; then \
echo 0; \
elif cmp -s $ALIASES/uart1 $ALIASES/serial1; then \
echo 1; \
else \
exit 1; \
fi \
'", SYMLINK+="serial%c"