diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-11-04 01:05:12 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-11-04 01:05:12 +0000 |
commit | dab5ebaa76d6432459ba6e26ab22600ed85dd3e4 (patch) | |
tree | e00a2fa277296d2299cfff100c251c0e52a7f62f /package/netifd | |
parent | 18a4bbb98d339eb8aac1b1b0e5b6fa6d9339f9ad (diff) | |
download | mtk-20170518-dab5ebaa76d6432459ba6e26ab22600ed85dd3e4.zip mtk-20170518-dab5ebaa76d6432459ba6e26ab22600ed85dd3e4.tar.gz mtk-20170518-dab5ebaa76d6432459ba6e26ab22600ed85dd3e4.tar.bz2 |
netifd: ensure that a bridge gets created before hostapd needs it, hostapd must not attempt to create the bridge by itself
SVN-Revision: 28745
Diffstat (limited to 'package/netifd')
-rw-r--r-- | package/netifd/Makefile | 4 | ||||
-rwxr-xr-x | package/netifd/files/lib/network/config.sh | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/package/netifd/Makefile b/package/netifd/Makefile index 465acd4..98b4a40 100644 --- a/package/netifd/Makefile +++ b/package/netifd/Makefile @@ -1,13 +1,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=netifd -PKG_VERSION:=2011-11-03 +PKG_VERSION:=2011-11-04 PKG_RELEASE=$(PKG_SOURCE_VERSION) PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=git://nbd.name/luci2/netifd.git PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) -PKG_SOURCE_VERSION:=5c0c0bb557b17c581d4f238c52b0b44ada34a608 +PKG_SOURCE_VERSION:=b6d7a8bc9822667cb851bec465c3ad7cd6714e90 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz # PKG_MIRROR_MD5SUM:= # CMAKE_INSTALL:=1 diff --git a/package/netifd/files/lib/network/config.sh b/package/netifd/files/lib/network/config.sh index 778c964..4ce362e 100755 --- a/package/netifd/files/lib/network/config.sh +++ b/package/netifd/files/lib/network/config.sh @@ -40,6 +40,13 @@ scan_interfaces() { config_foreach fixup_interface interface } +prepare_interface_bridge() { + local config="$1" + + [ -n "$config" ] || return 0 + ubus call network.interface."$config" prepare +} + setup_interface() { local iface="$1" local config="$2" |