mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 07:42:48 +02:00
[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
This commit is contained in:
parent
c7b279aebe
commit
83f0561da1
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
include $(INCLUDE_DIR)/kernel.mk
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
||||||
PKG_NAME:=base-files
|
PKG_NAME:=base-files
|
||||||
PKG_RELEASE:=71
|
PKG_RELEASE:=72
|
||||||
|
|
||||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||||
PKG_BUILD_DEPENDS:=opkg/host
|
PKG_BUILD_DEPENDS:=opkg/host
|
||||||
|
@ -325,7 +325,7 @@ setup_interface() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Interface settings
|
# Interface settings
|
||||||
grep "$iface:" /proc/net/dev > /dev/null && {
|
grep -qE "^ *$iface:" /proc/net/dev && {
|
||||||
local mtu macaddr txqueuelen
|
local mtu macaddr txqueuelen
|
||||||
config_get mtu "$config" mtu
|
config_get mtu "$config" mtu
|
||||||
config_get macaddr "$config" macaddr
|
config_get macaddr "$config" macaddr
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006-2011 OpenWrt.org
|
||||||
|
|
||||||
/sbin/ifdown "$@"
|
/sbin/ifdown "$@"
|
||||||
|
|
||||||
@ -18,6 +18,6 @@ include /lib/network
|
|||||||
scan_interfaces
|
scan_interfaces
|
||||||
|
|
||||||
config_get ifname "$1" device
|
config_get ifname "$1" device
|
||||||
for dev in $ifname; do
|
for dev in ${ifname:-$1}; do
|
||||||
setup_interface "$dev" "$1"
|
setup_interface "$dev" "$1"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user