Run script after finished boot

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
cobra98
Posts: 121
Joined: Tue Oct 15, 2013 5:07 am

Run script after finished boot

Post 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

User avatar
CBx86
Posts: 157
Joined: Sun Jan 05, 2014 5:43 pm
Location: Brazil

Re: Run script after finished boot

Post by CBx86 »

Try /etc/rc.local

:D

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Run script after finished boot

Post by Lantis »

Make the start number 99, or at least higher than webcam.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

cobra98
Posts: 121
Joined: Tue Oct 15, 2013 5:07 am

Re: Run script after finished boot

Post by cobra98 »

Working without start number.
Actually i forgot how they worked :D

Thx working

Post Reply