lldpd: consolidate procd command lines
There is no need to have multiple lines for this. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
This commit is contained in:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=lldpd
|
PKG_NAME:=lldpd
|
||||||
PKG_VERSION:=1.0.13
|
PKG_VERSION:=1.0.13
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://media.luffy.cx/files/lldpd
|
PKG_SOURCE_URL:=https://media.luffy.cx/files/lldpd
|
||||||
|
|||||||
@@ -84,8 +84,7 @@ start_service() {
|
|||||||
write_lldpd_conf
|
write_lldpd_conf
|
||||||
|
|
||||||
procd_open_instance
|
procd_open_instance
|
||||||
procd_set_param command /usr/sbin/lldpd
|
procd_set_param command /usr/sbin/lldpd -d
|
||||||
procd_append_param command -d # don't daemonize, procd will handle that for us
|
|
||||||
|
|
||||||
[ $enable_cdp -gt 0 ] && procd_append_param command '-c'
|
[ $enable_cdp -gt 0 ] && procd_append_param command '-c'
|
||||||
[ $enable_fdp -gt 0 ] && procd_append_param command '-f'
|
[ $enable_fdp -gt 0 ] && procd_append_param command '-f'
|
||||||
|
|||||||
Reference in New Issue
Block a user