mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
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:
0
utils/rtty/files/rtty.config
Executable file → Normal file
0
utils/rtty/files/rtty.config
Executable file → Normal file
@@ -20,7 +20,7 @@ start_rtty() {
|
|||||||
'ssl:bool:0' \
|
'ssl:bool:0' \
|
||||||
'ping:uinteger:5'
|
'ping:uinteger:5'
|
||||||
|
|
||||||
[ $? -eq 1 ] && {
|
[ $? -ne 0 ] && {
|
||||||
echo "validation failed" >&2
|
echo "validation failed" >&2
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user