From d59be995038c937d85069dd30a2d4e97489d1f4d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 10 Dec 2013 12:19:18 +0000 Subject: [PATCH] wifitoggle: use ubus call network reload to apply wifi changes (#14587) SVN-Revision: 39026 --- utils/wifitoggle/Makefile | 2 +- utils/wifitoggle/files/wifitoggle.hotplug | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/utils/wifitoggle/Makefile b/utils/wifitoggle/Makefile index b3154b69d..1a4660c57 100644 --- a/utils/wifitoggle/Makefile +++ b/utils/wifitoggle/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=wifitoggle PKG_VERSION:=1 -PKG_RELEASE:=3 +PKG_RELEASE:=4 include $(INCLUDE_DIR)/package.mk diff --git a/utils/wifitoggle/files/wifitoggle.hotplug b/utils/wifitoggle/files/wifitoggle.hotplug index 174693ece..d66db3f0a 100755 --- a/utils/wifitoggle/files/wifitoggle.hotplug +++ b/utils/wifitoggle/files/wifitoggle.hotplug @@ -37,7 +37,12 @@ setwifi() { config_load wireless config_foreach save_wireless wifi-device - wifi + + if ubus list network.wireless >/dev/null 2>/dev/null; then + ubus call network reload + else + wifi + fi } -- 2.30.2