aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-09-11 12:28:22 +0000
committerJohn Crispin <blogic@openwrt.org>2014-09-11 12:28:22 +0000
commit5af0ac95ab03fba96f9f8b4eabe8620b966ab217 (patch)
tree49eba215283cbc4c2190d55822272aebfc027df9
parentcee0fdae00c67ae1f32e8292e95859b908977194 (diff)
downloadupstream-5af0ac95ab03fba96f9f8b4eabe8620b966ab217.tar.gz
upstream-5af0ac95ab03fba96f9f8b4eabe8620b966ab217.tar.bz2
upstream-5af0ac95ab03fba96f9f8b4eabe8620b966ab217.zip
lldp: remove calls to user/group_add/exists
use the new ipkg based mechanism Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42472 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/network/services/lldpd/Makefile1
-rw-r--r--package/network/services/lldpd/files/lldpd.init3
2 files changed, 1 insertions, 3 deletions
diff --git a/package/network/services/lldpd/Makefile b/package/network/services/lldpd/Makefile
index 31367833ec..0b858483be 100644
--- a/package/network/services/lldpd/Makefile
+++ b/package/network/services/lldpd/Makefile
@@ -31,6 +31,7 @@ define Package/lldpd
TITLE:=Link Layer Discovery Protocol daemon
URL:=https://github.com/vincentbernat/lldpd/wiki
DEPENDS:=+libevent2 +USE_EGLIBC:libbsd
+ USERID:=lldp:lldp
endef
define Package/lldpd/description
diff --git a/package/network/services/lldpd/files/lldpd.init b/package/network/services/lldpd/files/lldpd.init
index 35999501f9..b2eea70fd3 100644
--- a/package/network/services/lldpd/files/lldpd.init
+++ b/package/network/services/lldpd/files/lldpd.init
@@ -50,9 +50,6 @@ start() {
[ $enable_sonmp -gt 0 ] && append args '-s'
[ $enable_edp -gt 0 ] && append args '-e'
- user_exists lldp 121 || user_add lldp 121 129
- group_exists lldp 129 || group_add lldp 129
-
mkdir -p /var/run/lldp
chown lldp:lldp /var/run/lldp