[package] base-files: attempt bring up related wifi devices when calling ifup
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 22 Jul 2011 00:21:20 +0000 (00:21 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 22 Jul 2011 00:21:20 +0000 (00:21 +0000)
commitfdeb37d498856db05ac20e333d38a092468f13ab
tree41099bbdbbbbea0abf86e1718a68a8f7807c4f68
parentb799e2812e1b27f3522364346dba6c25a6845831
[package] base-files: attempt bring up related wifi devices when calling ifup
If a user invoked /sbin/ifup to bring up an interface, the setup used to fail
in case of wireless networks tied to a non-bridged interface definition.
Likewise, the bringup of "lan" in the default configuration will reinitialize
the bridge but do not re-join the wireless network to it, requiring an extra
call to /sbin/wifi (which might not be possible anymore due to a severed link
if connected wirelessly).

The changeset modifies the "ifup" command to search for related wireless
devices and call "wifi up" on them if applicable. This way the commands for
wireless and non-wireless interfaces are unified from a cli point of view.

The "ifup -a" case has not been changed to keep the logic of the
/etc/init.d/network boot sequence. This might be changed later.

Solves #9763.

SVN-Revision: 27720
package/base-files/Makefile
package/base-files/files/sbin/ifdown
package/base-files/files/sbin/ifup