lldpd: remove unneeded quotes and variable quoting
authorPaul Donald <newtwen@gmail.com>
Thu, 8 Feb 2024 20:29:37 +0000 (21:29 +0100)
committerRobert Marko <robimarko@gmail.com>
Mon, 11 Mar 2024 08:58:20 +0000 (09:58 +0100)
from commit 3ce909914a12647bec52bcee0a162dd6d158a4f6

'capabilities enabled x' where x is a string of CSV

Tested on 22.03.5

Signed-off-by: Paul Donald <newtwen@gmail.com>
package/network/services/lldpd/files/lldpd.init

index 6af15691e7ea1ee68e3eeb3202aea5a015dbf966..3fc47bb3e37fed05feb9a6db54c4678cd6a2fe71 100644 (file)
@@ -145,7 +145,7 @@ write_lldpd_conf()
        [ -n "$lldp_description" ] && echo "configure system description" "\"$lldp_description\"" >> "$LLDPD_CONF"
        [ -n "$lldp_hostname" ] && echo "configure system hostname" "\"$lldp_hostname\"" >> "$LLDPD_CONF"
        [ -n "$lldp_mgmt_ip" ] && echo "configure system ip management pattern" "\"$lldp_mgmt_ip\"" >> "$LLDPD_CONF"
-       [ -n "$lldp_syscapabilities" ] && echo "configure system capabilities enabled" "\"$lldp_syscapabilities\"" >> "$LLDPD_CONF"
+       [ -n "$lldp_syscapabilities" ] && echo "configure system capabilities enabled $lldp_syscapabilities" >> "$LLDPD_CONF"
        if [ "$CONFIG_LLDPD_WITH_LLDPMED" == "y" ] && [ $lldpmed_fast_start -gt 0 ]; then
                if [ $lldpmed_fast_start_tx_interval -gt 0 ]; then
                        echo "configure med fast-start tx-interval $lldpmed_fast_start_tx_interval" >> "$LLDPD_CONF"