wren-linux / data / webcam-off.rules
# Written by Wren Linux extras/webcam.sh. A USB camera starts switched off
# (disconnected, as if unplugged) at boot and whenever one is plugged in. Switch
# it on from the Wren menu (Webcam) or with: wrenctl --camera on
# Only a whole USB device being added runs this, not a camera being switched on.
ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", RUN+="/usr/local/libexec/wren-camera added %k"