base-files: add a post start hook to the procd init.d api
authorJohn Crispin <john@openwrt.org>
Thu, 26 Jun 2014 11:43:30 +0000 (11:43 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 26 Jun 2014 11:43:30 +0000 (11:43 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41344

package/base-files/files/etc/rc.common

index 8701312e4c842d9a6067c8d40c1dd31750696be0..83ece4930f13c81c1ad93e613989593a3b19e3de 100755 (executable)
@@ -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() {