From 0a49d0ffbbe1081005a8307b0643b0048a217229 Mon Sep 17 00:00:00 2001 From: "Daniel F. Dickinson" Date: Tue, 9 Oct 2018 21:47:46 -0400 Subject: [PATCH] nut: Fix checking for path before it exists The mechanism for making sure hotplug doesn't execute during forced shutdown was interfering with initial start of hotplug script due to checking for path that doesn't exist at initial start. This fixes that and closes #6966. Signed-off-by: Daniel F. Dickinson --- net/nut/files/30-libhid-ups.tail | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/nut/files/30-libhid-ups.tail b/net/nut/files/30-libhid-ups.tail index 24c2a9670..343fd0963 100644 --- a/net/nut/files/30-libhid-ups.tail +++ b/net/nut/files/30-libhid-ups.tail @@ -1,5 +1,5 @@ "") - [ -d /var/run/nut ] && [ ! -f /var/run/nut/disable-hotplug ] && \ - /etc/init.d/nut-server enabled && perform_libhid_action + [ ! -f /var/run/nut/disable-hotplug ] && \ + /etc/init.d/nut-server enabled && perform_libhid_action ;; esac