Red Hat Bugzilla – Bug 434643
Pm-utils runs script twice if overridden in /etc/pm
Last modified: 2015-03-04 20:19:35 EST
Description of problem:
I want to override the default script in
/usr/lib/pm-utils/sleep.d/10NetworkManager. I've created a
/etc/pm/sleep.d/10NetworkManager script by copying it from
However, then the /etc/pm/sleep.d/10NetworkManager script is ran twice on
suspend and twice on resume.
Version-Release number of selected component (if applicable):
This patch fixes the problem:
--- /usr/lib/pm-utils/functions 2007-10-23 13:34:34.000000000 -0700
+++ ./functions 2008-02-23 12:02:41.000000000 -0800
@@ -60,7 +60,7 @@
- bases=$(for file in $flist ; do echo $(basename $file) ; done | sort -n)
+ bases=$(for file in $flist ; do echo $(basename $file) ; done | sort -nu)
for base in $bases ; do
if [ -e "/etc/pm/sleep.d/$base" ]; then
if [ -x "/etc/pm/sleep.d/$base" ]; then
Is this fixed with the pm-utils upstream? http://pm-utils.freedesktop.org/wiki/
I can't tell, the code has been completely reorganized and I cannot find the
Do you have a packaged version of pm-utils in rawhide?
(In reply to comment #2)
> I can't tell, the code has been completely reorganized and I cannot find the
> find_sleepd_files function.
> Do you have a packaged version of pm-utils in rawhide?
F9 and Rawhide have packages with the reorganized code, I believe this is fixed
now, the code to find the hooks is now in
(http://cgit.freedesktop.org/pm-utils/tree/pm/pm-functions.in) in the function
Yes, it does look fixed.
I'll let you close the bug.