Browse Source

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 <cshored@thecshore.com>
lilik-openwrt-22.03
Daniel F. Dickinson 6 years ago
parent
commit
0a49d0ffbb
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      net/nut/files/30-libhid-ups.tail

+ 2
- 2
net/nut/files/30-libhid-ups.tail View File

@ -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 esac

Loading…
Cancel
Save