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

Tested on 22.03.5

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

index fc24b9f7cd358ed4e5e6fb9eb5c2cb476ef3ea6d..47354f3c4e0b21fccaccb4ff5fc279505d1bb08c 100644 (file)
@@ -148,7 +148,7 @@ write_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"
+                       echo "configure med fast-start tx-interval $lldpmed_fast_start_tx_interval" >> "$LLDPD_CONF"
                else
                        echo "configure med fast-start" "enable" >> "$LLDPD_CONF"
                fi