Author: blogic
Date: 2014-09-11 14:28:22 +0200 (Thu, 11 Sep 2014)
New Revision: 42472

Modified:
   trunk/package/network/services/lldpd/Makefile
   trunk/package/network/services/lldpd/files/lldpd.init
Log:
lldp: remove calls to user/group_add/exists

use the new ipkg based mechanism

Signed-off-by: John Crispin <[email protected]>

Modified: trunk/package/network/services/lldpd/Makefile
===================================================================
--- trunk/package/network/services/lldpd/Makefile       2014-09-11 12:28:00 UTC 
(rev 42471)
+++ trunk/package/network/services/lldpd/Makefile       2014-09-11 12:28:22 UTC 
(rev 42472)
@@ -31,6 +31,7 @@
   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

Modified: trunk/package/network/services/lldpd/files/lldpd.init
===================================================================
--- trunk/package/network/services/lldpd/files/lldpd.init       2014-09-11 
12:28:00 UTC (rev 42471)
+++ trunk/package/network/services/lldpd/files/lldpd.init       2014-09-11 
12:28:22 UTC (rev 42472)
@@ -50,9 +50,6 @@
        [ $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
 
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to