hostapd: do not remove foreign wpa_supplicant sockets
authorJohn Crispin <john@openwrt.org>
Wed, 17 Sep 2014 07:41:31 +0000 (07:41 +0000)
committerJohn Crispin <john@openwrt.org>
Wed, 17 Sep 2014 07:41:31 +0000 (07:41 +0000)
https://dev.openwrt.org/ticket/17886

Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 42586

package/network/services/hostapd/files/netifd.sh

index aa44b393c3a31738e8ee55bc41838e8155e5ca8b..30d12e904f08861f11e00a61faf5223c0fb62355 100644 (file)
@@ -416,7 +416,7 @@ _wpa_supplicant_common() {
 
 wpa_supplicant_teardown_interface() {
        _wpa_supplicant_common "$1"
-       rm -rf "$_rpath" "$_config"
+       rm -rf "$_rpath/$1" "$_config"
 }
 
 wpa_supplicant_prepare_interface() {