diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-10-12 11:58:19 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-10-12 11:58:19 +0000 |
commit | 41922b413534a1ec260fc776ddac4b766d636e9f (patch) | |
tree | 04827fd9575c382a9c7f4a5d38dc8b5b375be716 /package/network/services/lldpd/files | |
parent | 421ae2ac7b49a950f31798ec4249043f332d16d1 (diff) | |
download | master-187ad058-41922b413534a1ec260fc776ddac4b766d636e9f.tar.gz master-187ad058-41922b413534a1ec260fc776ddac4b766d636e9f.tar.bz2 master-187ad058-41922b413534a1ec260fc776ddac4b766d636e9f.zip |
lldpd: bump to v0.6.1, enable privilege separation and chrooting
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33729 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/services/lldpd/files')
-rw-r--r-- | package/network/services/lldpd/files/lldpd.init | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/package/network/services/lldpd/files/lldpd.init b/package/network/services/lldpd/files/lldpd.init index 5d34283883..0ef64e08e6 100644 --- a/package/network/services/lldpd/files/lldpd.init +++ b/package/network/services/lldpd/files/lldpd.init @@ -26,6 +26,12 @@ 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 + service_start /usr/sbin/lldpd $args \ ${lldp_class:+ -M $lldp_class} @@ -37,4 +43,5 @@ start() { stop() { service_stop /usr/sbin/lldpd + rm -f /var/run/lldpd.socket /var/run/lldpd.pid } |