Skip to content

Commit 8fc0b0c

Browse files
committed
fix: fix syntax error for modem offline and sim checking
1 parent ccd8ce8 commit 8fc0b0c

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

application/qmodem/files/usr/share/qmodem/generic.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,9 @@ get_info()
359359

360360
#SIM卡信息
361361
sim_info
362-
if [ "$sim_status" != "ready" ] [ -n "$sim_status" ]; then
362+
if [ "$sim_status" != "ready" ]; then
363363
[ -n "$sim_status" ] && add_warning_message_entry "sim_status" "$sim_status" "SIM Error,Error code:" "warning"
364-
[ -z "$sim_status" ] && add_warning_message_entry "sim_status" "Modem Offline" "Modem Offline" "warning"
364+
[ -z "$sim_status" ] && add_warning_message_entry "sim_status" "" "Modem Offline" "warning"
365365
return
366366
fi
367367

luci/luci-app-qmodem/po/zh-cn/qmodem.po

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#controller/qmodem.lua
2+
msgid "Modem Offline"
3+
msgstr "模组离线"
4+
25
msgid "QModem"
36
msgstr "QWRT模组管理"
47

luci/luci-app-qmodem/po/zh_Hans/qmodem.po

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#controller/qmodem.lua
2+
msgid "Modem Offline"
3+
msgstr "模组离线"
4+
25
msgid "QModem"
36
msgstr "QWRT模组管理"
47

0 commit comments

Comments
 (0)