From: Jianhui Zhao Date: Mon, 19 Mar 2018 07:30:59 +0000 (+0800) Subject: rtty: Fix the bug of startup script X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=210f6ecfd99655ce286cf8ae5dc3d3e87fd255da;p=feed%2Fpackages.git rtty: Fix the bug of startup script Not correctly judging whether uci_validate_section is successful Signed-off-by: Jianhui Zhao --- 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 }