summaryrefslogtreecommitdiff
path: root/package/base-files/files/lib/network/config.sh
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-06-07 23:25:43 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-06-07 23:25:43 +0000
commit97ee10d69172eacf4735ce1070bc0b21111a7b63 (patch)
tree6dd2425f7d7ba1f8e475ea7739cc2503eaa0a157 /package/base-files/files/lib/network/config.sh
parent6894dfb0fb9e983165b36dcce3042c4f4b130cf4 (diff)
downloadmtk-20170518-97ee10d69172eacf4735ce1070bc0b21111a7b63.zip
mtk-20170518-97ee10d69172eacf4735ce1070bc0b21111a7b63.tar.gz
mtk-20170518-97ee10d69172eacf4735ce1070bc0b21111a7b63.tar.bz2
base-files: fix error reporting for unsupported protocols on virtual interfaces
SVN-Revision: 27132
Diffstat (limited to 'package/base-files/files/lib/network/config.sh')
-rwxr-xr-xpackage/base-files/files/lib/network/config.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh
index c262282..7e4a53d 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