207ef3fb12
wpa_supplicant can now be notified of suspend/resume events, e.g., from pm-action scripts. This allows wpa_supplicant to clear information that may become invalid during a suspend operation.
17 lines
259 B
Bash
Executable file
17 lines
259 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# /etc/pm/sleep.d/60_wpa_supplicant
|
|
# Action script to notify wpa_supplicant of pm-action events.
|
|
|
|
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
|
|
|
WPACLI=wpa_cli
|
|
|
|
case "$1" in
|
|
suspend|hibernate)
|
|
$WPACLI suspend
|
|
;;
|
|
resume|thaw)
|
|
$WPACLI resume
|
|
;;
|
|
esac
|