A hotplug agent is an executable program that performs suitable
actions for an event. The agents for device events are located
/etc/hotplug.d/default. All programs in these
directories that have the suffix
executed in alphabetical order.
To ensure that events of a particular kind are ignored, remove the
executable bits from the respective hotplug agents. Alternatively,
change the suffix
.hotplug to something else.
Usually, device agents load kernel modules, but
occasionally they also call additional commands.
In SUSE LINUX, this is handled by
/sbin/hwdown. These programs search for a configuration
suitable for the device in the directory
/etc/sysconfig/hardware and apply it. To prevent
a certain device from being initialized, create a suitable configuration
file with the start mode
/sbin/hwup does not find any configuration, modules are
automatically loaded by the agent. In this case some agents automatically
generate configuration files for hwup. This makes the
agent faster the next time it runs. For more information, see
Section 18.4, “Automatic Module Loading”.
More information about
/sbin/hwup is available in the file
in the manual page man hwup.
Before interface agents are called, udev usually generates a device node the system can access. udev enables the assignment of persistent names to interfaces. See Chapter 19, Dynamic Device Nodes with udev for details. Subsequently, the individual agents set up the interfaces. The procedures for some interfaces are described below.
If a computer has several network devices with different drivers,
the designations of the interface can change if another driver
is loaded faster while the system is booting. For this
reason, SUSE LINUX manages events for PCI network devices
by means of a queue. This feature can be disabled with the
in the file
The best solution, however, is to use persistent interface
designations. You can specify the names of the individual interfaces in the
configuration files. Details about this method are available
in the file
Since SUSE LINUX 9.3, udev also deals with network interfaces,
although these are not
device nodes. This allows use of persistent interface names in a more
Interfaces to storage devices must be mounted
to be able to access them. This can be fully automated
or preconfigured. The configuration takes place in the
and in the file
A fully automated operation can be activated by setting
HOTPLUG_DO_MOUNT=yes. Deactivate it by
setting the variable to
Use the variable
to switch between two modes: subfs or fstab.
a subdirectory is created in the directory
The name of the subdirectory is derived from the device
properties. When the medium is accessed, it is automatically
mounted and unmounted by submountd. Devices in
this mode can easily be removed when they are no longer accessed.
HOTPLUG_MOUNT_TYPE=fstab mode, storage
devices are mounted in the conventional way by means of a
suitable entry in the file
HOTPLUG_MOUNT_SYNC can be set
to enable access in synchronous or asynchronous mode. In the
asynchronous mode, write access is faster, because the results
are buffered. However, careless removal of the data medium
can result in incomplete writing of data. In the synchronous
mode, all data is written immediately, but the access takes
longer. The device must be unmounted manually with
The use of persistent device names is recommended, because traditional device names may change depending on the initialization sequence. Details about persistent device names is available in Chapter 19, Dynamic Device Nodes with udev.