81da33ba81
The fork() architecture from the previous commit is also deemed a failure. Reverted back to v1.5.t19 code. I'll start from scratch, using this commit as the new base.
14 lines
386 B
Bash
14 lines
386 B
Bash
#!/bin/sh
|
|
if [ ! -d "/opt/mow" ]; then
|
|
mkdir /opt/mow
|
|
fi
|
|
cp ./.build-mow/mow /opt/mow/bin
|
|
printf "#!/bin/sh\n" > /opt/mow/run
|
|
printf "export OPENCV_LOG_LEVEL=DEBUG\n" >> /opt/mow/run
|
|
printf "export OPENCV_VIDEOIO_DEBUG=1\n" >> /opt/mow/run
|
|
printf "/opt/mow/bin \$1 \$2 \$3\n" >> /opt/mow/run
|
|
chmod +x /opt/mow/run
|
|
chmod +x /opt/mow/bin
|
|
rm /usr/bin/mow
|
|
ln -s /opt/mow/run /usr/bin/mow
|