From bb3861116643a60dda965f4bd95d5f1eda902206 Mon Sep 17 00:00:00 2001 From: etmatrix Date: Sun, 28 Sep 2014 09:59:52 +0200 Subject: [PATCH] With DSL connection ifconfig hasn't broadcast address but P-t-P so awk don't match nothing --- net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh b/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh index e643c75598..63e49bd820 100644 --- a/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh +++ b/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh @@ -589,7 +589,7 @@ get_local_ip () { interface ) if [ $use_ipv6 -eq 0 ]; then __IP=$(ifconfig $ip_interface | awk ' - /Bcast.*Mask/ { # Filter IPv4 + /inet addr:/ { # Filter IPv4 # inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0 $1=""; # remove inet $3=""; # remove Bcast: ... -- 2.30.2