From: Daniel F. Dickinson Date: Wed, 10 Oct 2018 01:47:46 +0000 (-0400) Subject: nut: Fix checking for path before it exists X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=0a49d0ffbbe1081005a8307b0643b0048a217229;p=openwrt-packages.git 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 --- 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