summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2021-05-13 11:15:47 +0800
committerAndrei Gherzan <andrei@gherzan.com>2021-11-09 00:03:42 +0000
commit2e704f5ef61e4efd4b691a2ed1cad7a59811c791 (patch)
tree8df76a8fe699a7dcf557ba853b9e492d8c32f284
parentc4d091732cd701030141ab4a788060c04381cae9 (diff)
downloadmeta-raspberrypi-2e704f5ef61e4efd4b691a2ed1cad7a59811c791.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> (cherry picked from commit fb253346c2fe85f8fdd49e5a66dff04d8f2bd53e) Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com>
-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; \