O
O
oy_ooy2021-03-15 01:47:01
linux
oy_ooy, 2021-03-15 01:47:01

Why doesn't udev rule work?

I need the udev rule to work when usb is inserted, which directs the script to be executed.
The contents of the file with the rule 20-usb.rules :
ACTION="add", KERNEL="sd**",RUN+="/home/pi/autorun.sh"
Tried to run the script separately, it works. Maybe someone knows what could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
oy_ooy, 2021-03-15
@oy_ooy

I solved the problem, I had to set the rule for 50+ module, because. system can't process usb

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question