Ticket #3016: firewireverify

File firewireverify, 970 bytes (added by SlicerDicer, 19 years ago)

firewire script for jogging cablebox to life.

Line 
1plugctl -n 1 oPCR[0].channel=1
2plugctl -n 2 oPCR[0].channel=2
3
4DONE=no
5i="/root/foo.mpg"
6while [ "$DONE" = "no" ]
7do
8if [ -s $i ]
9then
10echo file size exists!!!!
11DONE=yes
12echo connection with firewire complete
13 break
14else
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.
17plugctl -n 1 oPCR[0].n_p2p_connections=0
18plugctl -n 1 oPCR[0].n_p2p_connections=1
19echo test.mpg is empty or does not exist resetting to try again.
20test-mpeg2 -r 1 > /root/foo.mpg & sleep 3 ; kill $!
21fi
22done
23
24rm /root/foo.mpg
25DONE=no
26i="/root/foo.mpg"
27while [ "$DONE" = "no" ]
28do
29if [ -s $i ]
30then
31echo file size exists!!!!
32DONE=yes
33echo connection with firewire complete
34else
35plugctl -n 2 oPCR[0].n_p2p_connections=0
36plugctl -n 2 oPCR[0].n_p2p_connections=1
37echo test.mpg is empty or does not exist resetting to try again.
38test-mpeg2 -r 2 > /root/foo.mpg & sleep 3 ; kill $!
39fi
40done
41