rtty: Fix the bug of startup script

Not correctly judging whether uci_validate_section is successful

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
Jianhui Zhao 2018-03-19 15:30:59 +08:00
parent 8e7d633b73
commit 210f6ecfd9
2 changed files with 1 additions and 1 deletions

0
utils/rtty/files/rtty.config Executable file → Normal file
View File

View File

@ -20,7 +20,7 @@ start_rtty() {
'ssl:bool:0' \
'ping:uinteger:5'
[ $? -eq 1 ] && {
[ $? -ne 0 ] && {
echo "validation failed" >&2
return 1
}