aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-10-05 10:29:01 +0000
committerJohn Crispin <blogic@openwrt.org>2015-10-05 10:29:01 +0000
commit3094d43012d367ac5d581f161ac6ede62b7992db (patch)
tree3a5e4f920d61e3e1813359ebe0ab7cf3e3d38ba8 /package
parent85d5a38d173fc01190220c9b837fa19684ccc365 (diff)
downloadmaster-187ad058-3094d43012d367ac5d581f161ac6ede62b7992db.tar.gz
master-187ad058-3094d43012d367ac5d581f161ac6ede62b7992db.tar.bz2
master-187ad058-3094d43012d367ac5d581f161ac6ede62b7992db.zip
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: Alexandru Ardelean <ardeleanalex@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47136 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/network/services/lldpd/files/lldpd.init6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/network/services/lldpd/files/lldpd.init b/package/network/services/lldpd/files/lldpd.init
index 278dbafb1e..3d7d8b93d3 100644
--- a/package/network/services/lldpd/files/lldpd.init
+++ b/package/network/services/lldpd/files/lldpd.init
@@ -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