Run custom scripts upon USB device plug-in
Posted: 29 Sep 2022, 20:26
Hi
How can i run a script when I plug any USB device.
Since I am using LXDE, mount and unmouting does not show notification like in Caja filemanager of MATE.
Added a rule in /etc/udev/rules.d/custom.rule like
ACTION=="add", KERNEL=="sd?", SUBSYSTEMS=="usb", RUN+="/bin/sh -c /usr/share/mx-usb-unmounter"
But below URL says this will not work since udev is creating this process.
https://askdev.io/questions/248884/how- ... ce-plug-in
It can work with "at now" command and how to install it in porteus.
thanks
How can i run a script when I plug any USB device.
Since I am using LXDE, mount and unmouting does not show notification like in Caja filemanager of MATE.
Added a rule in /etc/udev/rules.d/custom.rule like
ACTION=="add", KERNEL=="sd?", SUBSYSTEMS=="usb", RUN+="/bin/sh -c /usr/share/mx-usb-unmounter"
But below URL says this will not work since udev is creating this process.
https://askdev.io/questions/248884/how- ... ce-plug-in
It can work with "at now" command and how to install it in porteus.
thanks