From b52ceeea100faad1ff7f523080dc259ebf6de910 Mon Sep 17 00:00:00 2001 From: Fu Jianrong <53910283+FUjr@users.noreply.github.com> Date: Thu, 27 Mar 2025 07:00:18 +0800 Subject: [PATCH] fix: fix fm350 ipv6 monitor. may resolve #27 --- luci/luci-app-qmodem/root/usr/share/qmodem/modem_dial.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 201b15e..8dc789f 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 @@ -285,7 +285,7 @@ check_ip() ipaddr=$(at "$at_port" "$check_ip_command" |grep +CGPADDR:) if [ -n "$ipaddr" ];then if [ $mtk -eq 1 ] && echo "$ipv4_config" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$'; then - if [ "$pdp_type" = "IPv4v6" ];then + if [ "$pdp_type" = "ipv4v6" ];then if ! ping -c 2 -w 5 2400:3200::1 > /dev/null 2>&1; then m_debug "ipv6 is down,try to restart" ifdown "$interface"V6 && sleep 2 && ifup "$interface"V6