summaryrefslogtreecommitdiffstats
path: root/ifupdown/if-down
blob: 6915ade6d5a255f05dc019a1a6b85b789a0ddb39 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

set -eu

if [ "x${IFACE#wlan}" != "x${IFACE}" ]; then
	if [ -f "/var/run/wpa_supplicant.${IFACE}.conf" ]; then
		wpa_cli -p/var/run/wpa_supplicant -i${IFACE} terminate
		rm "/var/run/wpa_supplicant.${IFACE}.conf"
	fi
fi