I have been much happier since I installed the attached script and
configured /etc/wpa_supplicant/ifupdown.sh to use it instead of
/sbin/wpa_action. It delays disconnect events for 5 seconds,
and if a new connect comes within that time, it cancels the disconnect.
Other than that, events are
attached
#!/bin/sh
IFACE=$1
ACTION=$2
SELF=$$
PENDING_FILE=/tmp/pending_disconnect.$IFACE.lock
log () {
echo $(date '+%F %T') $@ /tmp/wpa_action.$IFACE.log
}
lock () {
lockfile /tmp/wpa_action.$IFACE.lock
}
unlock () {
rm -f /tmp/wpa_action.$IFACE.lock
}
# Note: wpa_cli runs us
2 matches
Mail list logo