do not bother if hotplug does not exist
This commit is contained in:
parent
9029e89e49
commit
349c86ba91
|
@ -7,7 +7,9 @@ service_tmpfiles=( '/run/vdev:dir' '/run/udev:symlink:/dev/metadata/udev' )
|
|||
|
||||
pre_start() {
|
||||
# Ensure that hotplug is empty
|
||||
true > /proc/sys/kernel/hotplug
|
||||
if [[ -f /proc/sys/kernel/hotplug ]]; then
|
||||
true > /proc/sys/kernel/hotplug
|
||||
fi
|
||||
|
||||
"$service_command" -1 -f /dev &>"$service_logfile"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user