PKG_NAME:=nut
PKG_VERSION:=2.7.4
-PKG_RELEASE:=20
+PKG_RELEASE:=21
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.networkupstools.org/source/2.7/
defoverride() {
local overvar="$1"
local defover="$2"
- local overtype="$(echo "$overvar" | tr '.' '_')"
+ local overtype="$(echo "$overvar" | tr '_' '.')"
local overval
- config_get overval "${defover}_${overtype}" value
- [ -n "$overval" ] && echo "${defover}.${overvar} = $overval" >>"$UPS_C"
+ config_get overval "${defover}_${overvar}" value
+ [ -n "$overval" ] && echo "${defover}.${overtype} = $overval" >>"$UPS_C"
}
config_list_foreach "$cfg" override defoverride override