Author: blogic Date: 2015-09-16 10:32:27 +0200 (Wed, 16 Sep 2015) New Revision: 46967
Modified: trunk/package/network/services/lldpd/files/lldpd.init Log: lldpd: move /var/run creation + chmod earlier Signed-off-by: Alexandru Ardelean <[email protected]> Modified: trunk/package/network/services/lldpd/files/lldpd.init =================================================================== --- trunk/package/network/services/lldpd/files/lldpd.init 2015-09-16 08:32:18 UTC (rev 46966) +++ trunk/package/network/services/lldpd/files/lldpd.init 2015-09-16 08:32:27 UTC (rev 46967) @@ -47,6 +47,9 @@ fi done + mkdir -p /var/run/lldp + chown lldp:lldp /var/run/lldp + [ -n "$ifnames" ] && append args "-I $ifnames" [ $enable_cdp -gt 0 ] && append args '-c' [ $enable_fdp -gt 0 ] && append args '-f' @@ -54,9 +57,6 @@ [ $enable_edp -gt 0 ] && append args '-e' [ $readonly_mode -gt 0 ] && append args '-r' - mkdir -p /var/run/lldp - chown lldp:lldp /var/run/lldp - service_start /usr/sbin/lldpd $args \ ${lldp_class:+ -M $lldp_class} \ ${lldp_description:+ -S "$lldp_description"} _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
