From: blogic Date: Thu, 26 Jun 2014 11:43:30 +0000 (+0000) Subject: base-files: add a post start hook to the procd init.d api X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=ae2baabf5fafdd025c3a7b25ce6b312e7e766590;p=openwrt.git base-files: add a post start hook to the procd init.d api Signed-off-by: John Crispin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41344 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/base-files/files/etc/rc.common b/package/base-files/files/etc/rc.common index 8701312e4c..83ece4930f 100755 --- a/package/base-files/files/etc/rc.common +++ b/package/base-files/files/etc/rc.common @@ -109,6 +109,9 @@ ${INIT_TRACE:+set -x} start() { rc_procd start_service "$@" + if eval "type service_started" 2>/dev/null >/dev/null; then + service_started + fi } stop() {