autostart lib nfc ci raspberry Zero W

cancel
Showing results for 
Search instead for 
Did you mean: 

autostart lib nfc ci raspberry Zero W

188 Views
Contributor I

jeremygeslin I  tried to autostart a reader skript with editing “/etc/rc.local” with a command analogous to this: 

/bin/su -c "cd /home/pi/dpaZ0/;./main" - pi

/home/pi/dpaZ0/main is the path to the script.

The reader don`t startbecause the program hangs in an erlier ioctl to the display. This is probably not related to the reader but I do not want to exclude any causes. Can this have to do anything with reader?

0 Kudos
2 Replies

103 Views
NXP Employee
NXP Employee

Hi Marion,

I suppose your command "/bin/su -c "cd /home/pi/dpaZ0/;./main" - pi" runs fine when executed from a terminal.

Did you tried to add it to .bashrc file for automatic start ? did it work from there ?

Regards,

Jeremy.

103 Views
Contributor I

Hi Jeremy!

Thank you very much for your urgent reply. 

I will try it @the weekend - today I am celebrating my degree (HTL). 

May I report again if problems arise?  


					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
0 Kudos