rpms/pm-utils/devel pm-utils-99hd-apm-restore,1.2,1.3
Till Maas (till)
fedora-extras-commits at redhat.com
Wed Jan 2 15:42:52 UTC 2008
Author: till
Update of /cvs/pkgs/rpms/pm-utils/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14117
Modified Files:
pm-utils-99hd-apm-restore
Log Message:
check whether hdparm did not report "unknown" as value for hd apm level
Index: pm-utils-99hd-apm-restore
===================================================================
RCS file: /cvs/pkgs/rpms/pm-utils/devel/pm-utils-99hd-apm-restore,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- pm-utils-99hd-apm-restore 2 Jan 2008 13:32:48 -0000 1.2
+++ pm-utils-99hd-apm-restore 2 Jan 2008 15:42:14 -0000 1.3
@@ -22,7 +22,10 @@
else
HD_APM_LEVEL=255
fi
- echo "HD_APM_LEVEL_${DEVICE}=${HD_APM_LEVEL}" >> ${HD_APM_STATEFILE}
+ if [[ "${HD_APM_LEVEL}" != "unknown" ]]
+ then
+ echo "HD_APM_LEVEL_${DEVICE}=${HD_APM_LEVEL}" >> ${HD_APM_STATEFILE}
+ fi
fi
done
;;
More information about the fedora-extras-commits
mailing list