mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04: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:
@@ -160,8 +160,6 @@ build_driver_config() {
|
|||||||
get_write_driver_config "$cfg" notransferoids 0 1
|
get_write_driver_config "$cfg" notransferoids 0 1
|
||||||
get_write_driver_config "$cfg" offdelay
|
get_write_driver_config "$cfg" offdelay
|
||||||
get_write_driver_config "$cfg" ondelay
|
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" pollfreq
|
||||||
get_write_driver_config "$cfg" port "auto"
|
get_write_driver_config "$cfg" port "auto"
|
||||||
get_write_driver_config "$cfg" product
|
get_write_driver_config "$cfg" product
|
||||||
@@ -202,8 +200,6 @@ build_driver_config() {
|
|||||||
fi
|
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 other
|
||||||
config_list_foreach "$cfg" default other otherflag
|
config_list_foreach "$cfg" default other otherflag
|
||||||
echo "" >>$UPS_C
|
echo "" >>$UPS_C
|
||||||
|
|||||||
Reference in New Issue
Block a user