This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
et:distancelab:wiredprogram [2015/05/06 07:21] – heikopikner | et:distancelab:wiredprogram [2020/07/20 09:00] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 67: | Line 67: | ||
end script | end script | ||
+ | The script for starting a multiple cameras: | ||
+ | |||
+ | description " | ||
+ | start on runlevel [2345] | ||
+ | stop on runlevel [016] | ||
+ | script | ||
+ | / | ||
+ | /bin/sleep 5 | ||
+ | / | ||
+ | /bin/sleep 5 | ||
+ | / | ||
+ | /bin/sleep 5 | ||
+ | / | ||
+ | /bin/sleep 5 | ||
+ | end script | ||
| | ||
The script must be executable: | The script must be executable: | ||
sudo chmod u+x / | sudo chmod u+x / | ||
+ | | ||
+ | ===== Video streamer (Olemasolev süsteem) ===== | ||
+ | |||
+ | Käivitusfail / | ||
+ | |||
+ | Faili sisu: | ||
+ | |||
+ | #!/bin/sh -e | ||
+ | # | ||
+ | # rc.local | ||
+ | # | ||
+ | # This script is executed at the end of each multiuser runlevel. | ||
+ | # Make sure that the script will "exit 0" on success or any other | ||
+ | # value on error. | ||
+ | # | ||
+ | # In order to enable or disable this script just change the execution | ||
+ | # bits. | ||
+ | # | ||
+ | # By default this script does nothing. | ||
+ | echo "scsi remove-single-device 2 0 0 0" > / | ||
+ | /sbin/rmmod uvcvideo | ||
+ | / | ||
+ | /bin/sleep 15 | ||
+ | / | ||
+ | /bin/sleep 5 | ||
+ | / | ||
+ | /bin/sleep 5 | ||
+ | / | ||
+ | exit 0 | ||
+ | |||
+ | |||
+ | Faili sisu enne muutmist ja ilmselt veaga: | ||
+ | |||
+ | #!/bin/sh -e | ||
+ | # | ||
+ | # rc.local | ||
+ | # | ||
+ | # This script is executed at the end of each multiuser runlevel. | ||
+ | # Make sure that the script will "exit 0" on success or any other | ||
+ | # value on error. | ||
+ | # | ||
+ | # In order to enable or disable this script just change the execution | ||
+ | # bits. | ||
+ | # | ||
+ | # By default this script does nothing. | ||
+ | echo "scsi remove-single-device 2 0 0 0" > / | ||
+ | /sbin/rmmod uvcvideo | ||
+ | / | ||
+ | /bin/sleep 15 | ||
+ | / | ||
+ | /bin/sleep 5 | ||
+ | / | ||
+ | /bin/sleep 5 | ||
+ | / | ||
+ | exit 0 | ||
+ | |||
| | ||
===== | ===== | ||
Line 95: | Line 166: | ||
faili õigus: | faili õigus: | ||
chmod 600 ~/ | chmod 600 ~/ | ||
- | |||