[openwrt/openwrt] lldpd: remove unneeded quotes and variable quoting

LEDE Commits lede-commits at lists.infradead.org
Tue Sep 17 03:36:36 PDT 2024


robimarko pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/89759ee4bb9f48d744cd1a176d9b6e56f91b9047

commit 89759ee4bb9f48d744cd1a176d9b6e56f91b9047
Author: Paul Donald <newtwen at gmail.com>
AuthorDate: Thu Feb 8 21:29:37 2024 +0100

    lldpd: remove unneeded quotes and variable quoting
    
    from commit 3ce909914a12647bec52bcee0a162dd6d158a4f6
    
    'capabilities enabled x' where x is a string of CSV
    
    Tested on 22.03.5
    
    Signed-off-by: Paul Donald <newtwen at gmail.com>
    (cherry picked from commit b039641071b1e9ee9654513ef3229bb97cc379af)
    Link: https://github.com/openwrt/openwrt/pull/15299
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 package/network/services/lldpd/files/lldpd.init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/network/services/lldpd/files/lldpd.init b/package/network/services/lldpd/files/lldpd.init
index 6af15691e7..3fc47bb3e3 100644
--- a/package/network/services/lldpd/files/lldpd.init
+++ b/package/network/services/lldpd/files/lldpd.init
@@ -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"




More information about the lede-commits mailing list