From 9f845f7d0aa273eabad4f3c4ed45925f155ed1c1 Mon Sep 17 00:00:00 2001 From: fujr Date: Wed, 6 Nov 2024 16:17:53 +0800 Subject: [PATCH] fix bug --- luci/luci-app-qmodem/root/usr/share/qmodem/generic.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/luci/luci-app-qmodem/root/usr/share/qmodem/generic.sh b/luci/luci-app-qmodem/root/usr/share/qmodem/generic.sh index a240338..01e8330 100755 --- a/luci/luci-app-qmodem/root/usr/share/qmodem/generic.sh +++ b/luci/luci-app-qmodem/root/usr/share/qmodem/generic.sh @@ -258,16 +258,12 @@ get_connect_status() fi if [ -n "$ipv4" ] || [ -n "$ipv6" ];then connect_status="Yes" - return_flag=1 + break else connect_status="No" fi - add_plain_info_entry "connect_status" "$connect_status" "Connect Status" - if [ "$return_flag" -eq 1 ];then - return - fi done - + add_plain_info_entry "connect_status" "$connect_status" "Connect Status" } #获取移远模组信息