From 82f401bf05bf32488ae4580eb247cdfca83e988f Mon Sep 17 00:00:00 2001 From: sfwtw Date: Tue, 17 Jun 2025 21:19:15 +0800 Subject: [PATCH] luci-app-qmodem: fix: dial delay null --- luci/luci-app-qmodem/root/usr/share/qmodem/modem_dial.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luci/luci-app-qmodem/root/usr/share/qmodem/modem_dial.sh b/luci/luci-app-qmodem/root/usr/share/qmodem/modem_dial.sh index 82d8908..75632a4 100755 --- a/luci/luci-app-qmodem/root/usr/share/qmodem/modem_dial.sh +++ b/luci/luci-app-qmodem/root/usr/share/qmodem/modem_dial.sh @@ -656,7 +656,7 @@ ecm_hang() ;; esac fastat "${at_port}" "${at_command}" - sleep "$delay" + [ -n "$delay" ] && sleep "$delay" } hang() @@ -854,7 +854,7 @@ at_dial() m_debug "dialing vendor:$manufacturer;platform:$platform; $cgdcont_command ; $at_command" at "${at_port}" "${cgdcont_command}" fastat "$at_port" "$at_command" - sleep "$delay" + [ -n "$delay" ] && sleep "$delay" if [ "$driver" = "mtk_pcie" ];then fastat "$at_port" "AT+CGACT=0,3" mbim_port=$(echo "$at_port" | sed 's/at/mbim/g')