xref: /freebsd/contrib/wpa/wpa_supplicant/examples/60_wpa_supplicant (revision a90b9d0159070121c221b966469c3e36d912bf82)
1#!/bin/sh
2
3# /etc/pm/sleep.d/60_wpa_supplicant
4# Action script to notify wpa_supplicant of pm-action events.
5
6PATH=/sbin:/usr/sbin:/bin:/usr/bin
7
8WPACLI=wpa_cli
9
10case "$1" in
11	suspend|hibernate)
12		$WPACLI suspend
13		;;
14	resume|thaw)
15		$WPACLI resume
16		;;
17esac
18
19exit 0
20