nut: fix other/otherflag custom variables in nut-server.init
authorMatt Merhar <mattmerhar@protonmail.com>
Mon, 20 Jan 2020 03:39:44 +0000 (22:39 -0500)
committerRosen Penev <rosenp@gmail.com>
Mon, 20 Jan 2020 05:22:35 +0000 (21:22 -0800)
commit72af40f2ba2936912564ff5fc54d2bf7c58ec461
tree56484f2635a673eed2031d532fafc66cd0ce3ead
parente1aa905ab9751348f607e214a46a4fb4310cbb34
nut: fix other/otherflag custom variables in nut-server.init

This allows custom config parameters to be added to the generated config
files, enabling the original intended functionality per
https://openwrt.org/docs/guide-user/services/ups/software.nut.

Example usage from /etc/config/nut_server:

config driver 'apc'
option driver 'snmp-ups'
option snmp_version 'v3'
option port '172.16.100.5'
list other 'secLevel'
list other 'secName'
list other 'authPassword'
list otherflag 'notransferoids'

config other 'other_secLevel'
option value 'authNoPriv'

config other 'other_secName'
option value 'some_username'

config other 'other_authPassword'
option value 'some_password'

config other 'otherflag_notransferoids'
option value '1'

Signed-off-by: Matt Merhar <mattmerhar@protonmail.com>
(cherry-picked from 0b04dd34a0cd706a7be33da3b7536f3c50714c8e)
net/nut/Makefile
net/nut/files/nut-server.init