13 lines
		
	
	
		
			232 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			232 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| # Forward the request to scripts in /etc/hprofile/profiles/power/scripts
 | |
| 
 | |
| powerscript="/etc/hprofile/profiles/power/scripts/${1}"
 | |
| 
 | |
| if test -x "${powerscript}" ; then
 | |
| 	"${powerscript}" || exit 2
 | |
|  	exit 0
 | |
| else
 | |
| 	exit 1
 | |
| fi
 |