Signed-off-by: Stefan Schantl <[email protected]>
---
src/initscripts/system/lldpd | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/initscripts/system/lldpd b/src/initscripts/system/lldpd
index 128115dbb..42b0cb9d7 100755
--- a/src/initscripts/system/lldpd
+++ b/src/initscripts/system/lldpd
@@ -22,6 +22,8 @@
. /etc/sysconfig/rc
. ${rc_functions}
+LLDPDARGS=""
+
# Read the configuration
readhash CONFIG "/var/ipfire/lldp/settings"
@@ -34,6 +36,9 @@ generate_config() {
return 0
}
+# Enable support for Cisco Discovery Protocol (CDP)
+LLDPDARGS+="-c"
+
case "${1}" in
start)
# Do nothing if the service is not enabled
@@ -49,7 +54,7 @@ case "${1}" in
fi
boot_mesg "Starting Link-Layer Discovery Protocol Daemon..."
- loadproc /usr/sbin/lldpd
+ loadproc /usr/sbin/lldpd ${LLDPDARGS}
;;
stop)
--
2.47.3