slackbuilds/multimedia/droidcam/rc.droidcam.new

35 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