diff options
author | John Crispin <blogic@openwrt.org> | 2015-09-16 08:32:27 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-09-16 08:32:27 +0000 |
commit | 49a8ac41332ed8428e333b033729d4740fa9ea0d (patch) | |
tree | 54439e074b2f8fc345164719cbfb2f7eaf0e7928 /package | |
parent | bf2e79c9e2033b2d4b5af50b8718ef25568c6346 (diff) | |
download | master-187ad058-49a8ac41332ed8428e333b033729d4740fa9ea0d.tar.gz master-187ad058-49a8ac41332ed8428e333b033729d4740fa9ea0d.tar.bz2 master-187ad058-49a8ac41332ed8428e333b033729d4740fa9ea0d.zip |
lldpd: move /var/run creation + chmod earlier
Signed-off-by: Alexandru Ardelean <aa@ocedo.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46967 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/network/services/lldpd/files/lldpd.init | 6 |
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 4b49cbd520..bd957b672b 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"} |