Go to advanced search

by rego21
Fri Feb 16, 2018 4:16 pm
Forum: General discussion
Topic: UDEV on the last Raspbian
Replies: 6
Views: 646

UDEV on the last Raspbian

Hello all,

Im trying to make an udev rule able to detect whenever a usb device is connected and then run a script. However it doesn´t work at all, here is the udeve rule:

Code: Select all

ACTION=="add", RUN="/home/pi/device.sh
And the script:

Code: Select all

#!/bin/bash     date >> log.log
Thank you all!

Go to advanced search