If it is a USB device (of any sort ...) then the "hotplug" mechanism that will be activated first. Upon receipt of a "device inserted" notification, it queries the manufacturer and device-type information signature to determine what sort of device it is, then executes appropriate scripts to fully configure it.
If you poke around a bit, you can find the exact script that is executed.
Most likely, a kernel module is selected and loaded, and it actually communicates with the device to retrieve the MAC address and so forth. Hotplug is a user side utility that runs with root privileges.
Last edited by sundialsvcs; 07-22-2016 at 07:39 AM.
|