My system has to auto-mount USB devices; how can I be notified when a USB device is plugged in? Where can I read more about this subject?
I would like to handle this problem via C or a shell script.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityMy system has to auto-mount USB devices; how can I be notified when a USB device is plugged in? Where can I read more about this subject?
I would like to handle this problem via C or a shell script.
Udev support running external programs
KERNEL=="sdb", RUN+="/usr/bin/my_program"