From d399f3a153afee77b8c2e9dddce160dce2fe6c09 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 7 Jun 2011 23:25:43 +0000 Subject: [package] base-files: fix error reporting for unsupported protocols on virtual interfaces git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27132 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/lib/network/config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/base-files/files/lib/network') diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh index c262282faa..7e4a53d0a7 100755 --- a/package/base-files/files/lib/network/config.sh +++ b/package/base-files/files/lib/network/config.sh @@ -325,7 +325,7 @@ setup_interface() { } # Interface settings - grep "$iface:" /proc/net/dev > /dev/null && { + grep -qE "^ *$iface:" /proc/net/dev && { local mtu macaddr txqueuelen config_get mtu "$config" mtu config_get macaddr "$config" macaddr -- cgit v1.2.3