| Zeile 486: |
Zeile 486: |
| | | | |
| | <pre> | | <pre> |
| − | ipkg install kmod-pwc | + | ipkg install http://141.54.160.25/dave/philips-webcam_0.2_mipsel.ipk |
| | + | </pre> |
| | + | |
| | + | es wird automatisch ein startscript '''/etc/init.d/S90webcam''' angelegt. |
| | + | |
| | + | <pre> |
| | + | cd /etc/init.d/ |
| | + | vi S90webcam |
| | + | </pre> |
| | + | |
| | + | <pre> |
| | + | #!/bin/sh |
| | + | |
| | + | # unload drivers in case the were loaded |
| | + | killall camsrv; rmmod pwcx; rmmod pwc; rmmod videodev |
| | + | |
| | + | # load webcam driver modules (it can be assumed that the USB drivers are compiled into the kernel or were installed & autoloaded) |
| | + | insmod videodev || exit 1 |
| | + | insmod pwc || exit 2 |
| | + | insmod pwcx || exit 3 |
| | + | |
| | + | sleep 1 |
| | + | |
| | + | # check if video device was allocated |
| | + | if [ ! -e /dev/v4l/video0 ]; then exit 4; fi |
| | + | |
| | + | # motion starten |
| | + | motion |
| | </pre> | | </pre> |
| | | | |