Merge pull request #7204 from fpletz/fix/hotplug_helper
Check if /proc/sys/kernel/hotplug exists before writing
This commit is contained in:
commit
f02651ee9b
@ -237,7 +237,10 @@ in
|
|||||||
|
|
||||||
system.activationScripts.udevd =
|
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
|
# Regenerate the hardware database /var/lib/udev/hwdb.bin
|
||||||
# whenever systemd changes.
|
# whenever systemd changes.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user