summaryrefslogtreecommitdiffstats
path: root/recipes-core/udev/udev-rules-rpi/99-com.rules
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/udev/udev-rules-rpi/99-com.rules')
-rw-r--r--recipes-core/udev/udev-rules-rpi/99-com.rules8
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes-core/udev/udev-rules-rpi/99-com.rules b/recipes-core/udev/udev-rules-rpi/99-com.rules
index 6bf019b..ddd1e17 100644
--- a/recipes-core/udev/udev-rules-rpi/99-com.rules
+++ b/recipes-core/udev/udev-rules-rpi/99-com.rules
@@ -1,8 +1,8 @@
1KERNEL=="ttyAMA[01]", PROGRAM="/bin/sh -c '\ 1KERNEL=="ttyAMA[01]", PROGRAM="/bin/sh -c '\
2 ALIASES=/proc/device-tree/aliases; \ 2 ALIASES=/proc/device-tree/aliases; \
3 if cmp -s $ALIASES/uart0 $ALIASES/serial0; then \ 3 if cmp -s $$ALIASES/uart0 $$ALIASES/serial0; then \
4 echo 0;\ 4 echo 0;\
5 elif cmp -s $ALIASES/uart0 $ALIASES/serial1; then \ 5 elif cmp -s $$ALIASES/uart0 $$ALIASES/serial1; then \
6 echo 1; \ 6 echo 1; \
7 else \ 7 else \
8 exit 1; \ 8 exit 1; \
@@ -11,9 +11,9 @@ KERNEL=="ttyAMA[01]", PROGRAM="/bin/sh -c '\
11 11
12KERNEL=="ttyS0", PROGRAM="/bin/sh -c '\ 12KERNEL=="ttyS0", PROGRAM="/bin/sh -c '\
13 ALIASES=/proc/device-tree/aliases; \ 13 ALIASES=/proc/device-tree/aliases; \
14 if cmp -s $ALIASES/uart1 $ALIASES/serial0; then \ 14 if cmp -s $$ALIASES/uart1 $$ALIASES/serial0; then \
15 echo 0; \ 15 echo 0; \
16 elif cmp -s $ALIASES/uart1 $ALIASES/serial1; then \ 16 elif cmp -s $$ALIASES/uart1 $$ALIASES/serial1; then \
17 echo 1; \ 17 echo 1; \
18 else \ 18 else \
19 exit 1; \ 19 exit 1; \