summaryrefslogtreecommitdiff
path: root/multimedia/droidcam/rc.droidcam.new
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/droidcam/rc.droidcam.new')
-rw-r--r--multimedia/droidcam/rc.droidcam.new34
1 files changed, 34 insertions, 0 deletions
diff --git a/multimedia/droidcam/rc.droidcam.new b/multimedia/droidcam/rc.droidcam.new
new file mode 100644
index 0000000000..e6d244fece
--- /dev/null
+++ b/multimedia/droidcam/rc.droidcam.new
@@ -0,0 +1,34 @@
+#!/usr/bin/env bash
+
+
+
+
+
+
+case $1 in
+start)
+ modprobe snd-aloop && modprobe v4l2loopback_dc
+
+
+;;
+
+stop)
+ rmmod -f snd-aloop && rmmod -f v4l2loopback_dc
+
+;;
+
+
+
+restart)
+
+ $0 stop
+
+
+ $0 start
+;;
+
+
+*)
+ echo 'Run only "/etc/rc.d/rc.droidcam start | stop| restart"'
+ ;;
+esac