summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/lsb/lsb/lsb_log_message
diff options
context:
space:
mode:
authorXiaofeng Yan <xiaofeng.yan@windriver.com>2011-05-10 16:30:16 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-11 16:41:22 +0100
commit5c846091b034fff21333487df4ada5667eb8e247 (patch)
treecc723e6135987e9119e1174f0e0ed2c46c846a83 /meta/recipes-extended/lsb/lsb/lsb_log_message
parent2fd69dbdb44b29116c3dbdab5a63b16ae76f2062 (diff)
downloadopenembedded-core-contrib-5c846091b034fff21333487df4ada5667eb8e247.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. Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
Diffstat (limited to 'meta/recipes-extended/lsb/lsb/lsb_log_message')
-rwxr-xr-xmeta/recipes-extended/lsb/lsb/lsb_log_message27
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 @@
+#!/bin/bash
+
+. /etc/init.d/functions
+
+ACTION=$1
+shift
+
+case "$ACTION" in
+ success)
+ echo -n $*
+ success "$*"
+ echo
+ ;;
+ failure)
+ echo -n $*
+ failure "$*"
+ echo
+ ;;
+ warning)
+ echo -n $*
+ warning "$*"
+ echo
+ ;;
+ *)
+ ;;
+esac
+exit 0