projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
6in4: don't use abbreviated notation for 0.0.0.0/0, iproute apparently does not like...
[openwrt/openwrt.git]
/
package
/
6in4
/
files
/
6in4.sh
diff --git
a/package/6in4/files/6in4.sh
b/package/6in4/files/6in4.sh
index 62a60dc8f66c98efffb35b7f223b32a2fe7e6bf0..2af1f74b297c744f2886817661f8f9156e13f387 100755
(executable)
--- a/
package/6in4/files/6in4.sh
+++ b/
package/6in4/files/6in4.sh
@@
-2,7
+2,7
@@
# Copyright (c) 2010 OpenWrt.org
find_6in4_wanif() {
# Copyright (c) 2010 OpenWrt.org
find_6in4_wanif() {
- local if=$(ip -4 r l e 0/0); if="${if#default* dev }"; if="${if%% *}"
+ local if=$(ip -4 r l e 0
.0.0.0
/0); if="${if#default* dev }"; if="${if%% *}"
[ -n "$if" ] && grep -qs "^ *$if:" /proc/net/dev && echo "$if"
}
[ -n "$if" ] && grep -qs "^ *$if:" /proc/net/dev && echo "$if"
}