rpms/pm-utils/devel pm-utils-99hd-apm-restore, 1.1, 1.2 pm-utils.spec, 1.85, 1.86

Till Maas (till) fedora-extras-commits at redhat.com
Wed Jan 2 13:33:23 UTC 2008


Author: till

Update of /cvs/pkgs/rpms/pm-utils/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28782

Modified Files:
	pm-utils-99hd-apm-restore pm-utils.spec 
Log Message:
add hdparm requires
remove uneeded full paths



Index: pm-utils-99hd-apm-restore
===================================================================
RCS file: /cvs/pkgs/rpms/pm-utils/devel/pm-utils-99hd-apm-restore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- pm-utils-99hd-apm-restore	2 Jan 2008 13:25:23 -0000	1.1
+++ pm-utils-99hd-apm-restore	2 Jan 2008 13:32:48 -0000	1.2
@@ -18,7 +18,7 @@
 			then
 				if (echo "${HD_APM_FEATURE}" | grep "*")
 				then
-					HD_APM_LEVEL=$(/sbin/hdparm -I /dev/${DEVICE} | /bin/grep "Advanced power management level" | /bin/cut -d" " -f 5)
+					HD_APM_LEVEL=$(hdparm -I /dev/${DEVICE} | grep "Advanced power management level" | cut -d" " -f 5)
 				else
 					HD_APM_LEVEL=255
 				fi
@@ -33,7 +33,7 @@
 			eval HD_APM_LEVEL=\${HD_APM_LEVEL_${DEVICE}}
 			if [[ "${HD_APM_LEVEL}" != "" ]]
 			then
-				/sbin/hdparm -B ${HD_APM_LEVEL} /dev/${DEVICE}
+				hdparm -B ${HD_APM_LEVEL} /dev/${DEVICE}
 			fi
 		done
 		rm -f ${HD_APM_STATEFILE}


Index: pm-utils.spec
===================================================================
RCS file: /cvs/pkgs/rpms/pm-utils/devel/pm-utils.spec,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -r1.85 -r1.86
--- pm-utils.spec	2 Jan 2008 13:25:23 -0000	1.85
+++ pm-utils.spec	2 Jan 2008 13:32:48 -0000	1.86
@@ -8,6 +8,7 @@
 ExclusiveArch: i386 x86_64 ia64 ppc ppc64 %{?arm} sparc sparcv9 sparc64
 Requires: usermode kbd pciutils >= 2.2.1
 Requires: radeontool
+Requires: hdparm
 %ifarch %{ix86} %{x86_64}
 Requires: vbetool
 %endif
@@ -129,6 +130,7 @@
 %changelog
 * Wed Jan 02 2008 Till Maas <opensource till name> - 0.99.4-9
 - restore hd apm level (RH #382061)
+- Add hdparm requires for new hook
 
 * Mon Dec 31 2007 Till Maas <opensource till name> - 0.99.4-8
 - Add documentation to %%doc




More information about the fedora-extras-commits mailing list