mirror of
https://github.com/openwrt/openwrt.git
synced 2025-03-03 12:54:38 +00:00
lldp: remove calls to user/group_add/exists
use the new ipkg based mechanism Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 42472
This commit is contained in:
parent
f81614594f
commit
5920eac8ee
@ -31,6 +31,7 @@ define Package/lldpd
|
|||||||
TITLE:=Link Layer Discovery Protocol daemon
|
TITLE:=Link Layer Discovery Protocol daemon
|
||||||
URL:=https://github.com/vincentbernat/lldpd/wiki
|
URL:=https://github.com/vincentbernat/lldpd/wiki
|
||||||
DEPENDS:=+libevent2 +USE_EGLIBC:libbsd
|
DEPENDS:=+libevent2 +USE_EGLIBC:libbsd
|
||||||
|
USERID:=lldp:lldp
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/lldpd/description
|
define Package/lldpd/description
|
||||||
|
@ -50,9 +50,6 @@ start() {
|
|||||||
[ $enable_sonmp -gt 0 ] && append args '-s'
|
[ $enable_sonmp -gt 0 ] && append args '-s'
|
||||||
[ $enable_edp -gt 0 ] && append args '-e'
|
[ $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
|
mkdir -p /var/run/lldp
|
||||||
chown lldp:lldp /var/run/lldp
|
chown lldp:lldp /var/run/lldp
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user