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.