|
|
@ -47,6 +47,9 @@ start() { |
|
|
|
fi |
|
|
|
fi |
|
|
|
done |
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p /var/run/lldp |
|
|
|
|
|
|
|
chown lldp:lldp /var/run/lldp |
|
|
|
|
|
|
|
|
|
|
|
[ -n "$ifnames" ] && append args "-I $ifnames" |
|
|
|
[ -n "$ifnames" ] && append args "-I $ifnames" |
|
|
|
[ $enable_cdp -gt 0 ] && append args '-c' |
|
|
|
[ $enable_cdp -gt 0 ] && append args '-c' |
|
|
|
[ $enable_fdp -gt 0 ] && append args '-f' |
|
|
|
[ $enable_fdp -gt 0 ] && append args '-f' |
|
|
@ -54,9 +57,6 @@ start() { |
|
|
|
[ $enable_edp -gt 0 ] && append args '-e' |
|
|
|
[ $enable_edp -gt 0 ] && append args '-e' |
|
|
|
[ $readonly_mode -gt 0 ] && append args '-r' |
|
|
|
[ $readonly_mode -gt 0 ] && append args '-r' |
|
|
|
|
|
|
|
|
|
|
|
mkdir -p /var/run/lldp |
|
|
|
|
|
|
|
chown lldp:lldp /var/run/lldp |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
service_start /usr/sbin/lldpd $args \ |
|
|
|
service_start /usr/sbin/lldpd $args \ |
|
|
|
${lldp_class:+ -M $lldp_class} \ |
|
|
|
${lldp_class:+ -M $lldp_class} \ |
|
|
|
${lldp_description:+ -S "$lldp_description"} |
|
|
|
${lldp_description:+ -S "$lldp_description"} |
|
|
|