Browse Source

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>
lilik-openwrt-22.03
Daniel F. Dickinson 6 years ago
parent
commit
d04f2580b1
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      net/nut/files/nut-server.init

+ 0
- 4
net/nut/files/nut-server.init 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


Loading…
Cancel
Save