nut: Add USB hotplug support

usbhid-ups has the necessary information in the source, so
let's support USB hotplugging out of the box.  Takes advantage of
the procd support now in nut-server initscript.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
This commit is contained in:
Daniel F. Dickinson
2018-08-27 16:06:58 -04:00
parent ceff68837d
commit 1cd4dcfa99
3 changed files with 67 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
"")
[ -d /var/run/nut ] && [ ! -f /var/run/nut/disable-hotplug ] && \
/etc/init.d/nut-server enabled && perform_libhid_action
;;
esac