Merge pull request #10413 from puffnfresh/nixos/mmc_host

nixos-generate-config: look at mmc_host for device drivers
This commit is contained in:
Arseniy Seroka 2015-10-17 03:42:51 +03:00
commit 2568806696

View File

@ -233,8 +233,8 @@ foreach my $path (glob "/sys/bus/usb/devices/*") {
}
# Add the modules for all block devices.
foreach my $path (glob "/sys/class/block/*") {
# Add the modules for all block and MMC devices.
foreach my $path (glob "/sys/class/{block,mmc_host}/*") {
my $module;
if (-e "$path/device/driver/module") {
$module = basename `readlink -f $path/device/driver/module`;