6in4: don't use abbreviated notation for 0.0.0.0/0, iproute apparently does not like it anymore

SVN-Revision: 23022
master
Jo-Philipp Wich 14 years ago
parent 3992d44428
commit 9499018b9a
  1. 4
      package/6in4/Makefile
  2. 2
      package/6in4/files/6in4.sh

@ -8,8 +8,8 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=6in4
PKG_VERSION:=5
PKG_RELEASE:=2
PKG_VERSION:=6
PKG_RELEASE:=1
include $(INCLUDE_DIR)/package.mk

@ -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"
}

Loading…
Cancel
Save