Im new to linux and the pi . Im stuck with this situation where Iv been trying to run a simple LED blinking C code as a test , so that it will be executed during startup
Code works fine when its executed from its folder indicating its a working code What I have done so far is
1. I put direction to the folder and command to run code in /etc/rc.local
ie
cd home/pi/C_Codes
and then run sudo ./blink.c
It work on 1st boot, but 2nd boot onwards it crashes and fails, but the pi does boot up, without any output(blinking of LED)
2. After creating new script(copy paste) as
/etc/init.d/blink_startup.c
I would run update-rc.d blink_startup.c enable
it gives error saying
blink_startup.c Default - Start contains no run levels
3. After running in root terminal, i gave chmod 755 /etc/init.d/blink_startup.c
to check program and then gave update to make it work on booting - update-rc.d blink_startup.c defaults
it gives the error - insserv: warning:script 'K01blink_startup.c' missing LSB tags and overrides
If someone could assist me and guide me through the situation to tackle this, would really appreciate it
Good Day
init.d
-framework are something completely separate.