]> git.ipfire.org Git - thirdparty/hostap.git/blob - wpa_supplicant/examples/60_wpa_supplicant
Add suspend/resume notifications
[thirdparty/hostap.git] / wpa_supplicant / examples / 60_wpa_supplicant
1 #!/bin/sh
2
3 # /etc/pm/sleep.d/60_wpa_supplicant
4 # Action script to notify wpa_supplicant of pm-action events.
5
6 PATH=/sbin:/usr/sbin:/bin:/usr/bin
7
8 WPACLI=wpa_cli
9
10 case "$1" in
11 suspend|hibernate)
12 $WPACLI suspend
13 ;;
14 resume|thaw)
15 $WPACLI resume
16 ;;
17 esac