From: Branson Matheson Date: Tue, 5 Feb 2019 18:21:31 +0000 (-0500) Subject: adding ability for luci_stats config to have multiple UPS's X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=30ee65fcab7f4bcbd9cd2f99d0e00765e0f1cb51;p=oweals%2Fluci.git adding ability for luci_stats config to have multiple UPS's --- diff --git a/applications/luci-app-statistics/root/etc/config/luci_statistics b/applications/luci-app-statistics/root/etc/config/luci_statistics index 1e841fec8..f84f67d1f 100644 --- a/applications/luci-app-statistics/root/etc/config/luci_statistics +++ b/applications/luci-app-statistics/root/etc/config/luci_statistics @@ -137,7 +137,7 @@ config statistics 'collectd_netlink' config statistics 'collectd_nut' option enable '0' - option UPS 'myupsname' + list UPS 'myupsname' config statistics 'collectd_olsrd' option enable '0' diff --git a/applications/luci-app-statistics/root/usr/bin/stat-genconfig b/applications/luci-app-statistics/root/usr/bin/stat-genconfig index 7d1349b24..55cc6979e 100755 --- a/applications/luci-app-statistics/root/usr/bin/stat-genconfig +++ b/applications/luci-app-statistics/root/usr/bin/stat-genconfig @@ -393,9 +393,9 @@ plugins = { network = config_network, nut = { - { "UPS" }, { }, - { } + { }, + { "UPS" } }, olsrd = {