summaryrefslogtreecommitdiffstats
path: root/ifupdown/if-down
blob: 224d97b623a3ca15776cfd9c82e9b1c61ee3d3f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/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.${IFACE}" -i${IFACE} \
			terminate
		rm "/var/run/wpa_supplicant.${IFACE}.conf"
	fi
fi