Page 1 of 1

Run script after finished boot

Posted: Thu Jan 03, 2019 6:38 pm
by cobra98
I try to turn off cam lights after boot with
uvcdynctrl -i /usr/share/uvcdynctrl/data/046d/logitech.xml
v4l2-ctl -c led1_mode=0
and placed a script in /etc/init.d with the name webcam_lights_off and chmod 755 to be able to execute.

I can run the script and it works fine but after reboot it seems to run first before the webcam starts to stream.
How can i make it run after all besides from a cron job?

Gargoyle version 1.10.0

Re: Run script after finished boot

Posted: Thu Jan 03, 2019 8:27 pm
by CBx86
Try /etc/rc.local

:D

Re: Run script after finished boot

Posted: Thu Jan 03, 2019 9:14 pm
by Lantis
Make the start number 99, or at least higher than webcam.

Re: Run script after finished boot

Posted: Fri Jan 25, 2019 10:12 am
by cobra98
Working without start number.
Actually i forgot how they worked :D

Thx working