From d04f2580b14d88413c22f1143f8da40bcc5f06d6 Mon Sep 17 00:00:00 2001 From: "Daniel F. Dickinson" Date: Thu, 20 Dec 2018 01:52:27 -0500 Subject: [PATCH] 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 --- net/nut/files/nut-server.init | 4 ---- 1 file changed, 4 deletions(-) diff --git a/net/nut/files/nut-server.init b/net/nut/files/nut-server.init index 8f1299f8b..f40b7bfb7 100755 --- a/net/nut/files/nut-server.init +++ b/net/nut/files/nut-server.init @@ -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