various scripts for various tasks.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

caminit 750B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/bash
  2. case $1 in
  3. start)
  4. echo "Starting webcam..."
  5. sudo /etc/init.d/lircd stop
  6. sudo /sbin/rmmod quickcam
  7. sudo /sbin/rmmod lirc_atiusb
  8. sudo /sbin/rmmod lirc_dev
  9. #sudo /sbin/rmmod bttv
  10. sleep 1
  11. sudo /sbin/modprobe quickcam
  12. sleep 1
  13. echo > /home/n/.caminfo
  14. echo > /tmp/xmms-info
  15. camE
  16. sleep 1
  17. sudo /sbin/modprobe lirc_atiusb
  18. sleep 1
  19. sudo /etc/init.d/lircd start
  20. #sudo /etc/init.d/lircmd start
  21. #sudo /sbin/modprobe bttv
  22. killall camE
  23. ;;
  24. stop)
  25. echo "Stopping webcam..."
  26. killall camE
  27. scp /home/n/.block.jpg root@web:/www/website/images/webcam.jpg > /dev/null
  28. echo > /home/n/.caminfo
  29. ;;
  30. restart)
  31. echo "Restarting webcam..."
  32. killall camE
  33. camE
  34. ;;
  35. *)
  36. echo "Usage: $0 [start|stop|restart]"
  37. esac