I wrote a script which is supposed to run at the login screen (It reads the serial stream of an arduino and types my password into the password box .. ). How can I run this script after boot but before the login?

share|improve this question
    
Can you share the script? – daltonfury42 Jul 14 '15 at 18:50

You can configure lightdm to call your script in /etc/init/lightdm.conf in such a way that it gets executed after starting lightdm. Just open the .conf file, and call your script under the section post-stop script.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.