From 1809999605cc2dab60ed0f96e92e563a073f0b5d Mon Sep 17 00:00:00 2001 From: Xiaofeng Yan Date: Tue, 10 May 2011 16:30:16 +0800 Subject: 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 Signed-off-by: Richard Purdie --- meta/recipes-extended/lsb/lsb/lsb_log_message | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 meta/recipes-extended/lsb/lsb/lsb_log_message (limited to 'meta/recipes-extended/lsb/lsb/lsb_log_message') 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 -- cgit v1.2.3-54-g00ecf