From 210f6ecfd99655ce286cf8ae5dc3d3e87fd255da Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Mon, 19 Mar 2018 15:30:59 +0800 Subject: [PATCH] rtty: Fix the bug of startup script Not correctly judging whether uci_validate_section is successful Signed-off-by: Jianhui Zhao --- utils/rtty/files/rtty.config | 0 utils/rtty/files/rtty.init | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 utils/rtty/files/rtty.config diff --git a/utils/rtty/files/rtty.config b/utils/rtty/files/rtty.config old mode 100755 new mode 100644 diff --git a/utils/rtty/files/rtty.init b/utils/rtty/files/rtty.init index 1c7c6e44de..f5c2231a3f 100644 --- a/utils/rtty/files/rtty.init +++ b/utils/rtty/files/rtty.init @@ -20,7 +20,7 @@ start_rtty() { 'ssl:bool:0' \ 'ping:uinteger:5' - [ $? -eq 1 ] && { + [ $? -ne 0 ] && { echo "validation failed" >&2 return 1 }