From 349c86ba91c6944d986b14b81856ed7408e5db32 Mon Sep 17 00:00:00 2001 From: fbt Date: Sun, 1 Nov 2015 13:18:52 +0300 Subject: [PATCH] do not bother if hotplug does not exist --- init.d/vdevd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.d/vdevd b/init.d/vdevd index 7b00a8e..76459e5 100755 --- a/init.d/vdevd +++ b/init.d/vdevd @@ -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" }