aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/examples/60_wpa_supplicant
diff options
context:
space:
mode:
Diffstat (limited to 'wpa_supplicant/examples/60_wpa_supplicant')
-rwxr-xr-xwpa_supplicant/examples/60_wpa_supplicant17
1 files changed, 17 insertions, 0 deletions
diff --git a/wpa_supplicant/examples/60_wpa_supplicant b/wpa_supplicant/examples/60_wpa_supplicant
new file mode 100755
index 0000000..f570ad3
--- /dev/null
+++ b/wpa_supplicant/examples/60_wpa_supplicant
@@ -0,0 +1,17 @@
+#!/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