Public bug reported: 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. ** Affects: acpid (Ubuntu) Importance: Undecided Status: New ** Tags: oneiric wishlist -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/902473 Title: acpid's script "lid.sh" should *source* lid.sh.pre and lid.sh.post To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/acpid/+bug/902473/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs