lldpd: option to disable LLDP-MED inventory TLV
[openwrt/staging/robimarko.git] / package / network / services / lldpd / Makefile
index 289adc55c9407baa4c6651d582f9282cc21b1edd..9e4ee0727e37028dc75c41fde9208384c3228071 100644 (file)
@@ -82,6 +82,10 @@ endif
 ifneq ($(CONFIG_LLDPD_WITH_SNMP),y)
        sed -i -e '/agentxsocket/d' $(1)/etc/init.d/lldpd $(1)/etc/config/lldpd
 endif
+ifneq ($(CONFIG_LLDPD_WITH_LLDPMED),y)
+       sed -i -e 's/CONFIG_LLDPD_WITH_LLDPMED=y/CONFIG_LLDPD_WITH_LLDPMED=n/g' $(1)/etc/init.d/lldpd
+       sed -i -e '/agentxsocket/d' $(1)/etc/config/lldpd
+endif
 endef
 
 define Package/lldpd/conffiles