From 9c3a31ff4c5024fcb449c71f423768b6acf2f431 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 27 Mar 2013 22:08:25 +0100 Subject: [PATCH] Clear /proc/sys/kernel/hotplug again Otherwise the kernel will pointlessly try to invoke /sbin/hotplug all the time. Another feature lost in the systemd switch. --- modules/services/hardware/udev.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/services/hardware/udev.nix b/modules/services/hardware/udev.nix index a83f99278f4d..3bec396bfe57 100644 --- a/modules/services/hardware/udev.nix +++ b/modules/services/hardware/udev.nix @@ -228,7 +228,15 @@ in (isYes "NET") ]; - system.activationScripts."set-firmware-path" = - "echo -n ${config.hardware.firmware} 2>/dev/null > /sys/module/firmware_class/parameters/path"; + system.activationScripts.setFirmwarePath = + '' + echo -n ${config.hardware.firmware} 2>/dev/null > /sys/module/firmware_class/parameters/path + ''; + + system.activationScripts.clearHotplug = + '' + echo "" > /proc/sys/kernel/hotplug + ''; + }; }