summaryrefslogtreecommitdiff
path: root/package/6in4/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-09-11 18:58:17 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-09-11 18:58:17 +0000
commit9499018b9ac80ef74aeac3bffea006855dc11bfe (patch)
treeead3912a833026d6c497d36d084fcc0b9590ad37 /package/6in4/files
parent3992d444281419b6553c86258bdadfd65779d373 (diff)
downloadmtk-20170518-9499018b9ac80ef74aeac3bffea006855dc11bfe.zip
mtk-20170518-9499018b9ac80ef74aeac3bffea006855dc11bfe.tar.gz
mtk-20170518-9499018b9ac80ef74aeac3bffea006855dc11bfe.tar.bz2
6in4: don't use abbreviated notation for 0.0.0.0/0, iproute apparently does not like it anymore
SVN-Revision: 23022
Diffstat (limited to 'package/6in4/files')
-rwxr-xr-xpackage/6in4/files/6in4.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/6in4/files/6in4.sh b/package/6in4/files/6in4.sh
index 62a60dc..2af1f74 100755
--- a/package/6in4/files/6in4.sh
+++ b/package/6in4/files/6in4.sh
@@ -2,7 +2,7 @@
# 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"
}