mercredi 25 février 2015

How to add scripts for udev to run


I have several scripts i would like udev to run when a monitor is plugged/unplugged. I have added the extra udev rules, but i don't know how to add the scripts that i want udev to run.


I have tried pointing udev to the scripts outside of nix with:



RUN+="/home/myUser/scriptName.sh"


This failed on rebuild with the error:



/home/myUser/scriptName.sh is called in udev rules but not installed by udev


So how do i install scripts by udev?


Do i have to create nix expressions for the scripts and install them with everything else?


Thanks.



Aucun commentaire:

Enregistrer un commentaire