[Pm-utils] Speaking about the new layout...

Stefan Seyfried seife at suse.de
Fri Mar 16 09:29:55 PDT 2007


...which seems to work quite well, but one question popped up:

What do we recommend to users who ask "how do i disable the $FOO hook"?

"chmod -x /usr/lib/pm-utils/...." does not sound good, since this is not
the location for admin-defined stuff.

So IMO there are two possible approaches:

DISABLE_42foo=yes

in a config file in /etc/pm/config.d/ (or a list like
DISABLE_HOOKS="11foo 22bar 32foo-bar")

Going the "link the installed hooks from /etc/pm/sleep.d" route is the
second alternative (unless i missed something).

>From a "handle the system upgrade case" perspective, i'd probably like
the config-variable approach better. I have not thought too much about
it, so all suggestions are welcome :-)

If there is a consensus on how we should do it, i can provide patches.

Have a nice weekend :-)
-- 
Stefan Seyfried

"Any ideas, John?"
"Well, surrounding them's out." 


More information about the Pm-utils mailing list