wifi: restart netifd wifi interfaces on the "up" command like the old variant
authorFelix Fietkau <nbd@openwrt.org>
Mon, 2 Dec 2013 16:53:27 +0000 (16:53 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 2 Dec 2013 16:53:27 +0000 (16:53 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38990

package/base-files/files/sbin/wifi

index 2687f1e90ae5cb115547d26a2391dde6a9eb9ec6..f40cd7febb377effe80f2bd7f3cbd288b59220dc 100755 (executable)
@@ -126,6 +126,7 @@ wifi_updown() {
        cmd=down
        [ enable = "$1" ] && {
                _wifi_updown disable "$2"
+               ubus_wifi_cmd "$cmd" "$2"
                scan_wifi
                cmd=up
        }