summaryrefslogtreecommitdiff
path: root/multimedia/droidcam/rc.droidcam.new
blob: e6d244fecee2496f07ccd767a453f15175f24f99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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