Project

General

Profile

« Previous | Next » 

Revision b5582f49

Added by Erik Fonnesbeck over 15 years ago

Kill hostapd and wpa_supplicant when bringing the interface down.

View differences:

etc/inc/interfaces.inc
864 864
		break;
865 865
	}
866 866

  
867
	/* hostapd and wpa_supplicant do not need to be running when the interface is down.
868
	 * They will also use 100% CPU if running after the wireless clone gets deleted. */
869
	if (is_array($ifcfg['wireless'])) {
870
		mwexec(kill_hostapd($realif));
871
		mwexec(kill_wpasupplicant($realif));
872
	}
873

  
867 874
	if ($destroy == true) {
868 875
		if (preg_match("/^tun|^ovpn|^gif|^gre|^lagg|^bridge|vlan/i", $realif))
869 876
			mwexec("/sbin/ifconfig {$realif} destroy");

Also available in: Unified diff