1 | plugctl -n 1 oPCR[0].channel=1
|
---|
2 | plugctl -n 2 oPCR[0].channel=2
|
---|
3 |
|
---|
4 | DONE=no
|
---|
5 | i="/root/foo.mpg"
|
---|
6 | while [ "$DONE" = "no" ]
|
---|
7 | do
|
---|
8 | if [ -s $i ]
|
---|
9 | then
|
---|
10 | echo file size exists!!!!
|
---|
11 | DONE=yes
|
---|
12 | echo connection with firewire complete
|
---|
13 | break
|
---|
14 | else
|
---|
15 | # Sets the plug to deactive/active to jog it to life. This can sometimes require multiple.
|
---|
16 | # Eventually it shall catch and will move onto next section below.
|
---|
17 | plugctl -n 1 oPCR[0].n_p2p_connections=0
|
---|
18 | plugctl -n 1 oPCR[0].n_p2p_connections=1
|
---|
19 | echo test.mpg is empty or does not exist resetting to try again.
|
---|
20 | test-mpeg2 -r 1 > /root/foo.mpg & sleep 3 ; kill $!
|
---|
21 | fi
|
---|
22 | done
|
---|
23 |
|
---|
24 | rm /root/foo.mpg
|
---|
25 | DONE=no
|
---|
26 | i="/root/foo.mpg"
|
---|
27 | while [ "$DONE" = "no" ]
|
---|
28 | do
|
---|
29 | if [ -s $i ]
|
---|
30 | then
|
---|
31 | echo file size exists!!!!
|
---|
32 | DONE=yes
|
---|
33 | echo connection with firewire complete
|
---|
34 | else
|
---|
35 | plugctl -n 2 oPCR[0].n_p2p_connections=0
|
---|
36 | plugctl -n 2 oPCR[0].n_p2p_connections=1
|
---|
37 | echo test.mpg is empty or does not exist resetting to try again.
|
---|
38 | test-mpeg2 -r 2 > /root/foo.mpg & sleep 3 ; kill $!
|
---|
39 | fi
|
---|
40 | done
|
---|
41 |
|
---|