fix: fix fm350 ipv6 monitor. may resolve #27
This commit is contained in:
parent
fb01e4f9fd
commit
b52ceeea10
@ -285,7 +285,7 @@ check_ip()
|
|||||||
ipaddr=$(at "$at_port" "$check_ip_command" |grep +CGPADDR:)
|
ipaddr=$(at "$at_port" "$check_ip_command" |grep +CGPADDR:)
|
||||||
if [ -n "$ipaddr" ];then
|
if [ -n "$ipaddr" ];then
|
||||||
if [ $mtk -eq 1 ] && echo "$ipv4_config" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$'; 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
|
if ! ping -c 2 -w 5 2400:3200::1 > /dev/null 2>&1; then
|
||||||
m_debug "ipv6 is down,try to restart"
|
m_debug "ipv6 is down,try to restart"
|
||||||
ifdown "$interface"V6 && sleep 2 && ifup "$interface"V6
|
ifdown "$interface"V6 && sleep 2 && ifup "$interface"V6
|
||||||
|
Loading…
x
Reference in New Issue
Block a user