lldpd: consolidate procd command lines
authorStijn Tintel <stijn@linux-ipv6.be>
Sun, 14 Nov 2021 19:12:53 +0000 (21:12 +0200)
committerStijn Tintel <stijn@linux-ipv6.be>
Sun, 14 Nov 2021 19:26:41 +0000 (21:26 +0200)
There is no need to have multiple lines for this.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
package/network/services/lldpd/Makefile
package/network/services/lldpd/files/lldpd.init

index 2d2a8c4a7d0051c62e03bd489f27b68fb6a15b7d..fcfbc182861d46b44f68a6bbfac67c93793f4b6d 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=lldpd
 PKG_VERSION:=1.0.13
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://media.luffy.cx/files/lldpd
index 7a5b25e016047756bb7833647835a4b5e3d7cccd..74fece72271cac27984045a5ba5cef04169d2452 100644 (file)
@@ -84,8 +84,7 @@ start_service() {
        write_lldpd_conf
 
        procd_open_instance
-       procd_set_param command /usr/sbin/lldpd
-       procd_append_param command -d # don't daemonize, procd will handle that for us
+       procd_set_param command /usr/sbin/lldpd -d
 
        [ $enable_cdp -gt 0 ] && procd_append_param command '-c'
        [ $enable_fdp -gt 0 ] && procd_append_param command '-f'