[Voyage-linux] udev & hotplug
maciek
(spam-protected)
Tue Jan 24 18:07:07 HKT 2012
Hello
I`d like to set my usb webcam as hotplug device. When I plugin I`d like to
start fswebcam deamon and unplug - stop.
I set it like this:
SUBSYSTEM=="video4linux", ATTR{name}=="UVC Camera (046d:080f)",
NAME="logitech", GROUP="video", MODE="0660", GOTO="fswebcam_start"
GOTO="fswebcam_end"
LABEL="fswebcam_start"
ACTION=="add", RUN+="fswebcam -c /root/fswebcam.conf
--pid=/var/run/fspid"
ACTION=="remove" RUN+="???????????"
GOTO="fswebcam_end"
Questions:
1. Are those script ok? (action add & remove)
2. How to kill process fspid (ACTION=="remove")?
v o i p t e l e . n e t , dzwon najtaniej jak to mozliwe
e r a u r . c o m , rozwiazania internetowe dla firm i klientow indywidualnych
More information about the Voyage-linux
mailing list