I think this problem should be solved using udev script. Something like: ACTION=="add|remove", RUN+="/path/some_script.sh"
I think this problem should be solved using udev script. ="add|remove" , RUN+="/ path/some_ script. sh"
Something like:
ACTION=