Changeset 28745


Ignore:
Timestamp:
2011-11-04T02:05:12+01:00 (5 years ago)
Author:
nbd
Message:

netifd: ensure that a bridge gets created before hostapd needs it, hostapd must not attempt to create the bridge by itself

Location:
trunk/package
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files-network/files/lib/network/config.sh

    r28495 r28745  
    144144                done 
    145145        ) | sort -u 
     146} 
     147 
     148prepare_interface_bridge() { 
     149        return 0 
    146150} 
    147151 
  • trunk/package/base-files/files/sbin/wifi

    r24258 r28745  
    4141        config_get iftype "$cfg" type 
    4242        [ "$iftype" = bridge ] && config_get "$cfg" ifname 
     43        prepare_interface_bridge "$cfg" 
    4344)} 
    4445 
  • trunk/package/netifd/Makefile

    r28737 r28745  
    22 
    33PKG_NAME:=netifd 
    4 PKG_VERSION:=2011-11-03 
     4PKG_VERSION:=2011-11-04 
    55PKG_RELEASE=$(PKG_SOURCE_VERSION) 
    66 
     
    88PKG_SOURCE_URL:=git://nbd.name/luci2/netifd.git 
    99PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) 
    10 PKG_SOURCE_VERSION:=5c0c0bb557b17c581d4f238c52b0b44ada34a608 
     10PKG_SOURCE_VERSION:=b6d7a8bc9822667cb851bec465c3ad7cd6714e90 
    1111PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz 
    1212# PKG_MIRROR_MD5SUM:= 
  • trunk/package/netifd/files/lib/network/config.sh

    r28499 r28745  
    4141} 
    4242 
     43prepare_interface_bridge() { 
     44        local config="$1" 
     45 
     46        [ -n "$config" ] || return 0 
     47        ubus call network.interface."$config" prepare 
     48} 
     49 
    4350setup_interface() { 
    4451        local iface="$1" 
Note: See TracChangeset for help on using the changeset viewer.