summaryrefslogtreecommitdiffstats
path: root/recipes-core
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2021-05-13 11:15:47 +0800
committerAndrei Gherzan <andrei@gherzan.com>2021-05-16 01:45:23 +0100
commitfb253346c2fe85f8fdd49e5a66dff04d8f2bd53e (patch)
tree7be0cf9708a6c3890007e7aeca3d1ea7a8e926aa /recipes-core
parent4302d3a509b9683cf263ac78435135d60ba5bc6d (diff)
downloadmeta-raspberrypi-fb253346c2fe85f8fdd49e5a66dff04d8f2bd53e.tar.gz
99-com.rules: fix error invalid substitution type
fix below error: /etc/udev/rules.d/99-com.rules:10 Invalid value "/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'" for PROGRAM (char 58: invalid substitution type) Signed-off-by: Changqing Li <changqing.li@windriver.com>
Diffstat (limited to 'recipes-core')
-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; \