mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-20 02:43:38 +00:00
This patch makes sure lldpd is installed and comes up with the correct configuration. Signed-off-by: John Crispin <john@phrozen.org>
14 lines
426 B
Bash
Executable File
14 lines
426 B
Bash
Executable File
#!/bin/sh
|
|
|
|
uci set lldpd.config.enable_cdp=0
|
|
uci set lldpd.config.enable_fdp=0
|
|
uci set lldpd.config.enable_sonmp=0
|
|
uci set lldpd.config.enable_edp=0
|
|
uci set lldpd.config.description="TIP/OpenAP"
|
|
uci set lldpd.config.lldp_hostname="$(cat /tmp/sysinfo/model)"
|
|
uci del lldpd.config.lldp_location
|
|
uci del lldpd.config.interface
|
|
uci add_list lldpd.config.interface=loopback
|
|
uci add_list lldpd.config.interface=wan
|
|
uci commit lldpd
|