This question already has an answer here:
- Why is my udev-fired script not working? 2 answers
I want to learn more about udev rules, so I implemented a simple one, but I doesn't work:
KERNEL=="sdb1" ACTION=="add" RUN+="~/test/exe.sh"
#!/bin/bash echo "USB plugged in" > ~/test/showup.txt
.sh file is executable, and I checked the flash drive's name via
lsblk. It is called
sdb and has a
I already looked up different tutorials, but can't find my mistake. I use Arch Linux in case that matters.