Home | History | Annotate | Download | only in examples
      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
     18 
     19 exit 0
     20