From: Felix Fietkau <nbd@openwrt.org>
Date: Wed, 11 Dec 2013 19:48:19 +0000 (+0000)
Subject: /sbin/wifi: reload network/wireless on wifi restart
X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=b656a562254fc9c2363fc246ff6d394ce372515a;p=openwrt%2Fstaging%2Fblocktrron.git

/sbin/wifi: reload network/wireless on wifi restart

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39036
---

diff --git a/package/base-files/files/sbin/wifi b/package/base-files/files/sbin/wifi
index 897ee4ff14..051bc89a2d 100755
--- a/package/base-files/files/sbin/wifi
+++ b/package/base-files/files/sbin/wifi
@@ -232,5 +232,5 @@ case "$1" in
 	reload) wifi_reload "$2";;
 	reload_legacy) wifi_reload_legacy "$2";;
 	--help|help) usage;;
-	*) wifi_updown "enable" "$2";;
+	*) ubus call network reload; wifi_updown "enable" "$2";;
 esac