summaryrefslogtreecommitdiff
path: root/package/network/services
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-09-16 08:32:27 +0000
committerJohn Crispin <john@openwrt.org>2015-09-16 08:32:27 +0000
commitfc19ec21e45eda9ae261778edd18007846f73ac8 (patch)
tree3e75af5b8f04986472331b0de3b403fee3747d75 /package/network/services
parent5007f488bb5e1b556052ef246bd3822fed8d09d2 (diff)
downloadmtk-20170518-fc19ec21e45eda9ae261778edd18007846f73ac8.zip
mtk-20170518-fc19ec21e45eda9ae261778edd18007846f73ac8.tar.gz
mtk-20170518-fc19ec21e45eda9ae261778edd18007846f73ac8.tar.bz2
lldpd: move /var/run creation + chmod earlier
Signed-off-by: Alexandru Ardelean <aa@ocedo.com> SVN-Revision: 46967
Diffstat (limited to 'package/network/services')
-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 4b49cbd..bd957b6 100644
--- a/package/network/services/lldpd/files/lldpd.init
+++ b/package/network/services/lldpd/files/lldpd.init
@@ -47,6 +47,9 @@ start() {
fi
done
+ mkdir -p /var/run/lldp
+ chown lldp:lldp /var/run/lldp
+
[ -n "$ifnames" ] && append args "-I $ifnames"
[ $enable_cdp -gt 0 ] && append args '-c'
[ $enable_fdp -gt 0 ] && append args '-f'
@@ -54,9 +57,6 @@ start() {
[ $enable_edp -gt 0 ] && append args '-e'
[ $readonly_mode -gt 0 ] && append args '-r'
- mkdir -p /var/run/lldp
- chown lldp:lldp /var/run/lldp
-
service_start /usr/sbin/lldpd $args \
${lldp_class:+ -M $lldp_class} \
${lldp_description:+ -S "$lldp_description"}