Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id E0AAFE01457 for ; Sun, 6 Jan 2013 03:54:58 -0800 (PST) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.14.5/8.14.3) with ESMTP id r06Bsxbb005947 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Sun, 6 Jan 2013 03:54:59 -0800 (PST) Received: from localhost.localdomain (128.224.170.79) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.2.318.4; Sun, 6 Jan 2013 03:54:58 -0800 From: Andrei Gherzan To: , Date: Sun, 6 Jan 2013 13:54:47 +0200 Message-ID: <1357473302-19235-8-git-send-email-andrei.gherzan@windriver.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1357473302-19235-1-git-send-email-andrei.gherzan@windriver.com> References: <1357473302-19235-1-git-send-email-andrei.gherzan@windriver.com> MIME-Version: 1.0 X-Originating-IP: [128.224.170.79] Cc: yocto@yoctoproject.org, Andrei Gherzan Subject: [meta-ivi][PATCH 08/23] ofono: Minor file reformatting and fix bashism X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jan 2013 11:54:59 -0000 Content-Type: text/plain Signed-off-by: Andrei Gherzan --- recipes-connectivity/ofono/ofono_1.12.bbappend | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/recipes-connectivity/ofono/ofono_1.12.bbappend b/recipes-connectivity/ofono/ofono_1.12.bbappend index 2cbc3ac..abe265e 100644 --- a/recipes-connectivity/ofono/ofono_1.12.bbappend +++ b/recipes-connectivity/ofono/ofono_1.12.bbappend @@ -1,4 +1,4 @@ -PRINC = "3" +PRINC := "${@int(PRINC) + 3}" inherit systemd @@ -12,8 +12,7 @@ INITSCRIPT_PARAMS = "" # Remove init scripts do_install_append() { - if [[ "${DISTRO_FEATURES}" == *"systemd"* ]] - then - rm -rf ${D}${sysconfdir}/init.d/ - fi + case "${DISTRO_FEATURES}" in + *systemd*) rm -rf ${D}${sysconfdir}/init.d/ + esac } -- 1.7.9.5