summaryrefslogtreecommitdiff
path: root/package/network/services
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-12-05 09:57:19 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-12-05 09:57:19 +0000
commitb580ebb5a8e19401b984a36de187b74843a7612b (patch)
treea8d148e52a5af0069d26f5ffe54b81523623c798 /package/network/services
parentec1b121769a4095a76321e9317faf1e803e101d0 (diff)
downloadmtk-20170518-b580ebb5a8e19401b984a36de187b74843a7612b.zip
mtk-20170518-b580ebb5a8e19401b984a36de187b74843a7612b.tar.gz
mtk-20170518-b580ebb5a8e19401b984a36de187b74843a7612b.tar.bz2
lldpd: add STOP=01 param in init script
This should ensure that lldpd is among the first processes to stop, so that it has time to send the shutdown LLDPU to the other side, before the network goes down. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> SVN-Revision: 47786
Diffstat (limited to 'package/network/services')
-rw-r--r--package/network/services/lldpd/files/lldpd.init3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/network/services/lldpd/files/lldpd.init b/package/network/services/lldpd/files/lldpd.init
index 04e5b8c..6965189 100644
--- a/package/network/services/lldpd/files/lldpd.init
+++ b/package/network/services/lldpd/files/lldpd.init
@@ -1,7 +1,8 @@
#!/bin/sh /etc/rc.common
-# Copyright (C) 2008-2012 OpenWrt.org
+# Copyright (C) 2008-2015 OpenWrt.org
START=90
+STOP=01
USE_PROCD=1
LLDPCLI=/usr/sbin/lldpcli