0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 14:10:33 +03:00

Merge pull request #7204 from fpletz/fix/hotplug_helper

Check if /proc/sys/kernel/hotplug exists before writing
This commit is contained in:
Tobias Geerinckx-Rice 2015-04-06 13:55:29 +02:00
commit f02651ee9b

View file

@ -237,7 +237,10 @@ in
system.activationScripts.udevd =
''
echo "" > /proc/sys/kernel/hotplug
# The deprecated hotplug uevent helper is not used anymore
if [ -e /proc/sys/kernel/hotplug ]; then
echo "" > /proc/sys/kernel/hotplug
fi
# Regenerate the hardware database /var/lib/udev/hwdb.bin
# whenever systemd changes.