I'm trying to map all my notebook acpi events to some useful stuff using /etc/acpi/actions/* scripts. For instance, I mapped the sleep button to a script lilke this:
Code: Select all
$ cat /etc/acpi/actions/btn_sleep.sh
#!/bin/sh
hibernate-ram --force
Code: Select all
$ cat /etc/acpi/actions/btn_sleep.sh
#!/bin/sh
echo $PATH > /tmp/acpiPath
$ cat /tmp/acpiPath
PATH=/bin:/sbin:/usr/bin��:/usr/sbin
I have absolutely no idea about where to look to 'correctly' fix this (for know, I simply force the PATH to be /sbin:/bin:/usr/sbin:/usr/bin at the beginning of each of my scripts, but would like to understand it).
Some information about my computer that might be useful to help catch the problem: root is running zsh shell, and under root, echo $PATH gives /sbin:/bin:/usr/sbin:/usr/bin. I tried reverting root's shell to bash (without any .bashrc) , but it's the same. I think everything was working great about a month ago, as far as I remember.
if anyone has any idea about this, or if you need some more information, please let me know.
Thanks


