nut: Remove extraneous config reads
authorDaniel F. Dickinson <cshored@thecshore.com>
Thu, 20 Dec 2018 06:52:27 +0000 (01:52 -0500)
committerDaniel F. Dickinson <cshored@thecshore.com>
Fri, 21 Dec 2018 04:23:56 +0000 (23:23 -0500)
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>
net/nut/files/nut-server.init

index 8f1299f8bac7027c5abe60aa3994708fc83b21fb..f40b7bfb70df4a0a37318c220868a4f24b9a3fcb 100755 (executable)
@@ -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