diff options
author | Xiaofeng Yan <xiaofeng.yan@windriver.com> | 2011-05-10 16:30:16 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-11 16:43:22 +0100 |
commit | 1809999605cc2dab60ed0f96e92e563a073f0b5d (patch) | |
tree | c1c51ccc4c5cc81361df8fa6d41415ef2befa5f6 /meta/recipes-extended/lsb/lsb/lsb_log_message | |
parent | 1320cad1ca5c10a3b639ac2b7116bd8acd735725 (diff) | |
download | poky-1809999605cc2dab60ed0f96e92e563a073f0b5d.tar.gz |
init-functions: Conforming applications may install one or more initialization scripts
LSB Test Suite need init scripts for lsb-image.
During the installer's post-install processing phase the program /usr/lib/lsb/install_initd \
must be called to activate the init script. \
When a software package is removed, /usr/lib/lsb/remove_initd \
must be called to deactivate the init script.
(From OE-Core rev: 5c846091b034fff21333487df4ada5667eb8e247)
Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/lsb/lsb/lsb_log_message')
-rwxr-xr-x | meta/recipes-extended/lsb/lsb/lsb_log_message | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-extended/lsb/lsb/lsb_log_message b/meta/recipes-extended/lsb/lsb/lsb_log_message new file mode 100755 index 0000000000..2995f781e0 --- /dev/null +++ b/meta/recipes-extended/lsb/lsb/lsb_log_message | |||
@@ -0,0 +1,27 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | . /etc/init.d/functions | ||
4 | |||
5 | ACTION=$1 | ||
6 | shift | ||
7 | |||
8 | case "$ACTION" in | ||
9 | success) | ||
10 | echo -n $* | ||
11 | success "$*" | ||
12 | echo | ||
13 | ;; | ||
14 | failure) | ||
15 | echo -n $* | ||
16 | failure "$*" | ||
17 | echo | ||
18 | ;; | ||
19 | warning) | ||
20 | echo -n $* | ||
21 | warning "$*" | ||
22 | echo | ||
23 | ;; | ||
24 | *) | ||
25 | ;; | ||
26 | esac | ||
27 | exit 0 | ||