[Bug 902473] Re: acpid's script "lid.sh" should *source* lid.sh.pre and lid.sh.post
Launchpad Bug Tracker
902473 at bugs.launchpad.net
Thu Feb 7 20:18:07 UTC 2013
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: acpid (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to acpid in Ubuntu.
https://bugs.launchpad.net/bugs/902473
Title:
acpid's script "lid.sh" should *source* lid.sh.pre and lid.sh.post
Status in “acpid” package in Ubuntu:
Confirmed
Bug description:
As of acpid 1:2.0.10-1ubuntu2.3, the support script
"/etc/acpi/lid.sh" allows users to define hooks
"/etc/acpi/local/lid.sh.pre" and "lid.sh.post".
However, these hooks are executed as shell commands, instead of being
sourced by the current shell. Thus, the environment and the ACPI
functions is lost in the hook scripts, and one must set it up again.
Sourcing the hook scripts makes them more useful.
Trivial patch attached.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/acpid/+bug/902473/+subscriptions
More information about the foundations-bugs
mailing list