I have one camera USB which on connect makes a place as /dev/video0, now using other applications while its reading /dev/video0 works fine, after some time like couple of hours later, automatically the /dev/video0 disappear and it becomes /dev/video1. As a result the same application stop working to capture it because there is no more /dev/video0.
How is it possible to apply a BASH loop to have a clone of /dev/video0 and /dev/video1 always. Like if video0 is lost but video1 is present then the script will clone exactly one another.
Any idea, how to fix it so that we have always /dev/video0 and /dev/video1 clone of any one another?