[SOLVED] How can run script when usb is plugged in freebsd?

Started by jalalahmadi, September 21, 2017, 08:48:23 AM

Previous topic - Next topic
Hi
I want run script USB is plugged.
/etc/rc.d/lte.sh


devd uses plugin directories which we use as well, e.g. https://github.com/opnsense/core/blob/master/src/etc/devd/ifnet.conf

So you want to find out which even you want to look for and create your own file, e.g. /usr/local/etc/devd/lte.conf


Cheers,
Franco

Thanks for your advice
Works great  :)



notify 100 {

    match "ugen"      "ugen0.3";
    action "/etc/rc.d/lte.sh";

};




Great stuff, thanks for sharing the answer with us. :)


Cheers,
Franco