Skip to content
Snippets Groups Projects
Commit 2b20ca38 authored by Adam Wujek's avatar Adam Wujek
Browse files

[BUG: #361] rootfs/etc/init.d/lldpd.sh: fix disabling LLDP on the management interface


Before fix it was disabling LLDP completely when trying to disable LLDP
on management interface.

Signed-off-by: default avatarAdam Wujek <dev_public@wujek.eu>
parent aa5ddddd
No related merge requests found
......@@ -67,7 +67,7 @@ start() {
echo "configure system description 'WR-SWITCH: $(/wr/bin/wrsw_version)'" >> $LLDPD_CONFIG
fi
if [ "$CONFIG_LLDPD_MANAGEMENT_PORT_DISABLE" = "y" ]; then
echo "configure system interface pattern '!eth*'" >> $LLDPD_CONFIG
echo "configure system interface pattern '*,!eth*'" >> $LLDPD_CONFIG
fi
for i_port in $(seq 1 18); do # scan all the physical ports
i_port_zero=$(printf "%02d" $i_port)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment