1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-16 20:33:58 +02:00

nut: Remove extraneous config reads

Handling of driver variable defaults, overrides, and additional
(other) variables changed and left behind some extraneous
config reads (config_get and config_list_foreach).  Remove those.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
This commit is contained in:
Daniel F. Dickinson 2018-12-20 01:52:27 -05:00
parent 97c7ef6c4d
commit d04f2580b1

View File

@ -160,8 +160,6 @@ build_driver_config() {
get_write_driver_config "$cfg" notransferoids 0 1
get_write_driver_config "$cfg" offdelay
get_write_driver_config "$cfg" ondelay
get_write_driver_config "$cfg" other
get_write_driver_config "$cfg" otherflag
get_write_driver_config "$cfg" pollfreq
get_write_driver_config "$cfg" port "auto"
get_write_driver_config "$cfg" product
@ -202,8 +200,6 @@ build_driver_config() {
fi
}
config_list_foreach "$cfg" override defoverride override
config_list_foreach "$cfg" default defoverride default
config_list_foreach "$cfg" default other other
config_list_foreach "$cfg" default other otherflag
echo "" >>$UPS_C