aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/sbin
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-12-02 16:53:24 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-12-02 16:53:24 +0000
commit8a98d2594a69f86755afa0b4305dbe2d4659ee39 (patch)
treebdadb8cc2d1976ff16bd612dcda6ae1f8912da8e /package/base-files/files/sbin
parent3fab0ab03ffebf980a4582b3c4a54d4fb6a74c08 (diff)
downloadupstream-8a98d2594a69f86755afa0b4305dbe2d4659ee39.tar.gz
upstream-8a98d2594a69f86755afa0b4305dbe2d4659ee39.tar.bz2
upstream-8a98d2594a69f86755afa0b4305dbe2d4659ee39.zip
wifi: rename the "reload" (restarting non-netifd wifi) command to "reload_legacy"
Add a new "reload" command that reloads the netifd config as well Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38989 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/sbin')
-rwxr-xr-xpackage/base-files/files/sbin/wifi8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/base-files/files/sbin/wifi b/package/base-files/files/sbin/wifi
index 7663432bd3..2687f1e90a 100755
--- a/package/base-files/files/sbin/wifi
+++ b/package/base-files/files/sbin/wifi
@@ -133,12 +133,17 @@ wifi_updown() {
_wifi_updown "$@"
}
-wifi_reload() {
+wifi_reload_legacy() {
_wifi_updown "disable" "$1"
scan_wifi
_wifi_updown "enable" "$1"
}
+wifi_reload() {
+ ubus call network reload
+ wifi_reload_legacy
+}
+
wifi_detect() {
for driver in ${2:-$DRIVERS}; do (
if eval "type detect_$driver" 2>/dev/null >/dev/null; then
@@ -224,6 +229,7 @@ case "$1" in
detect) wifi_detect "$2";;
status) ubus_wifi_cmd "status" "$2";;
reload) wifi_reload "$2";;
+ reload_legacy) wifi_reload_legacy "$2";;
--help|help) usage;;
*) wifi_updown "enable" "$2";;
esac