mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-02 13:04:42 +01:00
3312ee1cfc
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
34 lines
300 B
Bash
34 lines
300 B
Bash
#!/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
|