Rev 3 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3 | Rev 6 | ||
---|---|---|---|
Line 9... | Line 9... | ||
9 | $cont = implode("\n", $out); |
9 | $cont = implode("\n", $out); |
10 | if (preg_match("@Bus (.{3}) Device (.{3}): ID (.{4}):(.{4}) Logitech, Inc. Webcam C270@ismU", $cont, $m)) { |
10 | if (preg_match("@Bus (.{3}) Device (.{3}): ID (.{4}):(.{4}) Logitech, Inc. Webcam C270@ismU", $cont, $m)) { |
11 | system(escapeshellcmd(__DIR__.'/usbreset').' '.escapeshellarg("/dev/bus/usb/".$m[1]."/".$m[2])); |
11 | system(escapeshellcmd(__DIR__.'/usbreset').' '.escapeshellarg("/dev/bus/usb/".$m[1]."/".$m[2])); |
12 | } |
12 | } |
13 | 13 | ||
- | 14 | sleep(10); |
|
- | 15 | ||
14 | system("service motion start"); |
16 | system("service motion start"); |
15 | 17 |