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