Skip to content
Snippets Groups Projects
Commit 81819760 authored by John Crispin's avatar John Crispin
Browse files

lldpd: wrap procd command args in separate quotes


Seems the match pattern was being adapted from 'eth0' to ' eth0'
because of the way I added the procd command args.

This did not seem to be a problem when there were multiple interfaces,
just on devices with single interfaces for lldpd to listen on.

Signed-off-by: default avatarAlexandru Ardelean <ardeleanalex@gmail.com>

SVN-Revision: 47136
parent ce9da6e6
No related branches found
No related tags found
No related merge requests found
......@@ -54,14 +54,14 @@ start_service() {
procd_set_param command /usr/sbin/lldpd
procd_append_param command -d # don't daemonize, procd will handle that for us
[ -n "$ifnames" ] && procd_append_param command "-I $ifnames"
[ -n "$ifnames" ] && procd_append_param command -I "$ifnames"
[ $enable_cdp -gt 0 ] && procd_append_param command '-c'
[ $enable_fdp -gt 0 ] && procd_append_param command '-f'
[ $enable_sonmp -gt 0 ] && procd_append_param command '-s'
[ $enable_edp -gt 0 ] && procd_append_param command '-e'
[ $readonly_mode -gt 0 ] && procd_append_param command '-r'
[ -n "$lldp_class" ] && procd_append_param command "-M $lldp_class"
[ -n "$lldp_description" ] && procd_append_param command "-S $lldp_description"
[ -n "$lldp_class" ] && procd_append_param command -M "$lldp_class"
[ -n "$lldp_description" ] && procd_append_param command -S "$lldp_description"
# set auto respawn behavior
procd_set_param respawn
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment