SOURCES: acpid.button.sh - formatting/author

havner havner at pld-linux.org
Mon Aug 14 23:32:55 CEST 2006


Author: havner                       Date: Mon Aug 14 21:32:55 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- formatting/author

---- Files affected:
SOURCES:
   acpid.button.sh (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SOURCES/acpid.button.sh
diff -u SOURCES/acpid.button.sh:1.4 SOURCES/acpid.button.sh:1.5
--- SOURCES/acpid.button.sh:1.4	Mon Jul 24 19:20:25 2006
+++ SOURCES/acpid.button.sh	Mon Aug 14 23:32:49 2006
@@ -1,5 +1,6 @@
 #!/bin/sh
 # /etc/acpid/actions/button.sh
+# Łukasz Pawelczyk <havner at pld-linux.org>
 #
 # Detect buttons pressed and take appropriate actions.
 
@@ -9,36 +10,36 @@
 set $*
 
 case "$1" in
-	button/power)
-		logger "acpid: $1 action is not defined."
-		# halt computer
-		#halt
-		# put computer to sleep (not all machines have sleep button)
-		#echo mem > /sys/power/state
-		#hibernate
-		;;
-	button/sleep)
-		logger "acpid: $1 action is not defined"
-		# put computer to sleep
-		#echo mem > /sys/power/state
-		#hibernate
-		;;
-	button/lid)
-		logger "acpid: $1 action is not defined"
-		# put computer to sleep
-		#echo mem > /sys/power/state
+  button/power)
+	logger "acpid: $1 action is not defined."
+	# halt computer
+	#halt
+	# put computer to sleep (not all machines have sleep button)
+	#echo mem > /sys/power/state
+	#hibernate
+	;;
+  button/sleep)
+	logger "acpid: $1 action is not defined"
+	# put computer to sleep
+	#echo mem > /sys/power/state
+	#hibernate
+	;;
+  button/lid)
+	logger "acpid: $1 action is not defined"
+	# put computer to sleep
+	#echo mem > /sys/power/state
 
-		# if you want to specify separate commands for
-		# lid open/close uncomment this section:
+	# if you want to specify separate commands for
+	# lid open/close uncomment this section:
 
-		#ODD=`echo $4 | grep "[13579bdf]$"`
-		#if [ "$ODD" ]; then
-		#	logger "acpid: lid close action is not defined"
-		#else
-		#	logger "acpid: lid open action is not defined"
-		#fi
-		;;
-	*)
-		logger "acpid: $1 action is not defined"
-		;;
+	#ODD=`echo $4 | grep "[13579bdf]$"`
+	#if [ "$ODD" ]; then
+	#	logger "acpid: lid close action is not defined"
+	#else
+	#	logger "acpid: lid open action is not defined"
+	#fi
+	;;
+  *)
+	logger "acpid: $1 action is not defined"
+	;;
 esac
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/acpid.button.sh?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list