rtty: Fix the bug of startup script 5789/head
authorJianhui Zhao <jianhuizhao329@gmail.com>
Mon, 19 Mar 2018 07:30:59 +0000 (15:30 +0800)
committerJianhui Zhao <jianhuizhao329@gmail.com>
Mon, 19 Mar 2018 07:30:59 +0000 (15:30 +0800)
Not correctly judging whether uci_validate_section is successful

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
utils/rtty/files/rtty.config [changed mode: 0755->0644]
utils/rtty/files/rtty.init

old mode 100755 (executable)
new mode 100644 (file)
index 1c7c6e44dede33295545a27366a3e07e1eadf5b1..f5c2231a3f6a0f709de89ff997058e83b5e97763 100644 (file)
@@ -20,7 +20,7 @@ start_rtty() {
         'ssl:bool:0' \
         'ping:uinteger:5'
     
-    [ $? -eq 1 ] && {
+    [ $? -ne 0 ] && {
         echo "validation failed" >&2
         return 1
     }