This commit is contained in:
2020-12-15 17:58:32 +01:00
parent fd83edb459
commit 79a75d77f7
3 changed files with 13 additions and 0 deletions

3
droidcamStart Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
droidcam-cli 192.168.2.50 4747 &
echo $! > ~/.pid/droidcam.pid

4
droidcamStop Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
pid=`cat ~/.pid/droidcam.pid`
kill $pid
rm ~/.pid/droidcam.pid

6
droidcamToggle Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
if test -f ~/.pid/droidcam.pid; then
droidcamStop
else
droidcamStart
fi