Changeset 44585


Ignore:
Timestamp:
2015-03-01T13:25:02+01:00 (3 years ago)
Author:
jow
Message:

lldpd: fix passing multiple ifnames to the daemon

Instead of multiple -I arguments, lldpd expects a comma separated list.

Signed-off-by: Jo-Philipp Wich <jow@…>

Location:
trunk/package/network/services/lldpd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/network/services/lldpd/Makefile

    r43891 r44585  
    1010PKG_NAME:=lldpd 
    1111PKG_VERSION:=0.7.13 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • trunk/package/network/services/lldpd/files/lldpd.init

    r42472 r44585  
    3838        config_get ifaces 'config' 'interface' 
    3939 
    40         local iface 
     40        local iface ifnames="" 
    4141        for iface in $ifaces; do 
    4242                local ifname="" 
    4343                if network_get_device ifname "$iface" || [ -e "/sys/class/net/$iface" ]; then 
    44                         append args "-I ${ifname:-$iface}" 
     44                        append ifnames "${ifname:-$iface}" "," 
    4545                fi 
    4646        done 
    4747 
     48        [ -n "$ifnames" ] && append args "-I $ifnames" 
    4849        [ $enable_cdp -gt 0 ] && append args '-c' 
    4950        [ $enable_fdp -gt 0 ] && append args '-f' 
Note: See TracChangeset for help on using the changeset viewer.