[Enclosure plugin] How to use a shell script

Hi,

I want to use the enclosure plugin to connect a button to a GPIO. When the button is pressed, the Rasperry should be shut down. For this I would like to use a script, but I do not understand, in which folder the script must be stored.

Thanks for help.

Jörg

Hi, sorry for replying to this old topic after almost 1 year, but I have to ask you if you had success trying to run the script using that plugin. I'm trying to run a script from the plugin too but without success...