 36d1343a4b
			
		
	
	
		36d1343a4b
		
	
	
	
	
		
			
			There is no point in inhibiting suspend in case wpa_supplicant is not running and as such, return success unconditionally from this script.
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			267 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			267 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
 | |
| 
 | |
| exit 0
 |