From 909f0630663d7ae1471c76154516e3299992a150 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Wed, 21 Oct 2015 16:11:09 +0300 Subject: lldpd: fix reload function for when interfaces change The problem is that interfaces are specified at start as command line arguments, making them unchange-able via reload. That means, we have to move (since lldpd allows this) the interfaces-match-pattern option to be in a config file and reload the configuration. It's either that, or do a 'restart'. Since we're generating the lldpd.conf file, we'll have to move the 'sysconfdir' of lldpd to /tmp, where the files will get written ; this will prevent any unncessary flash writes. Signed-off-by: Alexandru Ardelean --- package/network/services/lldpd/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'package/network/services/lldpd/Makefile') diff --git a/package/network/services/lldpd/Makefile b/package/network/services/lldpd/Makefile index b2b1f3815d..ff15057aa5 100644 --- a/package/network/services/lldpd/Makefile +++ b/package/network/services/lldpd/Makefile @@ -94,6 +94,7 @@ CONFIGURE_ARGS += \ --with-embedded-libevent=no \ --disable-hardening \ --without-xml \ + --sysconfdir=/tmp \ $(if $(CONFIG_LLDPD_WITH_CDP),,--disable-cdp) \ $(if $(CONFIG_LLDPD_WITH_FDP),,--disable-fdp) \ $(if $(CONFIG_LLDPD_WITH_EDP),,--disable-edp) \ -- cgit v1.2.3