git.99rst.org
/
openwrt-packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
41fb4be
)
With DSL connection ifconfig hasn't broadcast address but P-t-P so awk don't match...
author
etmatrix
<redacted>
Sun, 28 Sep 2014 07:59:52 +0000
(09:59 +0200)
committer
etmatrix
<redacted>
Sun, 28 Sep 2014 07:59:52 +0000
(09:59 +0200)
net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh
patch
|
blob
|
history
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 e643c7559840c7fd4323b91b6154d847d5f0e0ec..63e49bd820781fc6c973339e57b798945631ea0f 100644
(file)
--- 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: ...
git clone https://git.99rst.org/PROJECT