File laptop-mode-1.49-fix-pm-utils-sleep-script.diff of Package laptop-mode-tools

Index: b/etc/pm/sleep.d/99laptop-mode
===================================================================
--- a/etc/pm/sleep.d/99laptop-mode
+++ b/etc/pm/sleep.d/99laptop-mode
@@ -8,11 +8,12 @@ case "$1" in
 		;;
 	thaw|resume)
 		# Make laptop mode tools forcibly re-apply the hardware settings
 		# that laptop mode tools applies.			
 		if [ -e /usr/sbin/laptop_mode ] ; then
-			/usr/sbin/laptop_mode auto force
+			# the "cat" is because laptop_mode seems to truncate the output file :(
+			/usr/sbin/laptop_mode auto force | cat
 		fi
 		;;
 	*) exit $NA
 		;;
 esac
openSUSE Build Service is sponsored by