1234567891011121314151617181920212223242526272829303132333435 |
- #!/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
|