projects
/
openwrt
/
staging
/
ldir.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5007f48
)
lldpd: move /var/run creation + chmod earlier
author
John Crispin
<
[email protected]
>
Wed, 16 Sep 2015 08:32:27 +0000
(08:32 +0000)
committer
John Crispin
<
[email protected]
>
Wed, 16 Sep 2015 08:32:27 +0000
(08:32 +0000)
Signed-off-by: Alexandru Ardelean <
[email protected]
>
SVN-Revision: 46967
package/network/services/lldpd/files/lldpd.init
patch
|
blob
|
history
diff --git
a/package/network/services/lldpd/files/lldpd.init
b/package/network/services/lldpd/files/lldpd.init
index 4b49cbd5204fbaf7250be3a02b991a037a6bfacc..bd957b672bfc6b0d985d44ffbb7582c8ad5f972b 100644
(file)
--- 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"}