-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added automatic driver loading (#469)
* Added automatic driver loading When the config file sets enable_autoload_drivers=1, the installer will enable driver loading on hotplug events using mdev.conf, and it will try to load drivers for already connected devices. * * Fixed modprobe for module aliases that contain whitespace * * Removed enable_autoload_drivers option, enabling it by default
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# mdev.conf | ||
# | ||
# Provide user, group, and mode information for devices. If a regex matches | ||
# the device name provided by sysfs, use the appropriate user:group and mode | ||
# instead of the default 0:0 660. | ||
# | ||
# Syntax: | ||
# [-]devicename_regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...] | ||
# [-]$ENVVAR=regex user:group mode [=path]|[>path]|[!] [@|$|*cmd args...] | ||
# [-]@maj,min[-min2] user:group mode [=path]|[>path]|[!] [@|$|*cmd args...] | ||
# | ||
# [-]: do not stop on this match, continue reading mdev.conf | ||
# =: move, >: move and create a symlink | ||
# !: do not create device node | ||
# @|$|*: run @cmd if $ACTION=add, $cmd if $ACTION=remove, *cmd in all cases | ||
|
||
# support module loading on hotplug | ||
$MODALIAS=.* 0:0 660 @modprobe -b "$MODALIAS" |