diff options
author | John Crispin <john@openwrt.org> | 2014-06-26 11:43:30 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-06-26 11:43:30 +0000 |
commit | 3a9bfa5938ab4d98a7c7ee10fca4b25101bbc0f9 (patch) | |
tree | fa80136212217c7351e0b5a40b075ba97103cf29 /package/base-files/files/etc/rc.common | |
parent | 975728813aa1e664d0bfbef49fdfc52a710783a4 (diff) | |
download | mtk-20170518-3a9bfa5938ab4d98a7c7ee10fca4b25101bbc0f9.zip mtk-20170518-3a9bfa5938ab4d98a7c7ee10fca4b25101bbc0f9.tar.gz mtk-20170518-3a9bfa5938ab4d98a7c7ee10fca4b25101bbc0f9.tar.bz2 |
base-files: add a post start hook to the procd init.d api
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41344
Diffstat (limited to 'package/base-files/files/etc/rc.common')
-rwxr-xr-x | package/base-files/files/etc/rc.common | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package/base-files/files/etc/rc.common b/package/base-files/files/etc/rc.common index 8701312..83ece49 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() { |