Browse Source

collectd: remove extra newlines from the generated config

Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
lilik-openwrt-22.03
Maxim Storchak 4 years ago
committed by Hannu Nyman
parent
commit
a5d87390f2
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      utils/collectd/files/collectd.init

+ 1
- 3
utils/collectd/files/collectd.init View File

@ -236,11 +236,9 @@ process_generic() {
[ -z "$config" ] || { [ -z "$config" ] || {
printf "%s<Plugin %s>\n" "${CONFIG_STRING}" "$cfg" >> "$COLLECTD_CONF" printf "%s<Plugin %s>\n" "${CONFIG_STRING}" "$cfg" >> "$COLLECTD_CONF"
echo -e "${config}" >> "$COLLECTD_CONF"
echo -n -e "${config}" >> "$COLLECTD_CONF"
printf "%s</Plugin>\n" "${CONFIG_STRING}" >> "$COLLECTD_CONF" printf "%s</Plugin>\n" "${CONFIG_STRING}" >> "$COLLECTD_CONF"
} }
printf "\n" >> "$COLLECTD_CONF"
} }
process_plugins() { process_plugins() {


Loading…
Cancel
Save