[yocto] [meta-ivi][PATCH 08/23] ofono: Minor file reformatting and fix bashism

Andrei Gherzan andrei.gherzan at windriver.com
Sun Jan 6 03:54:47 PST 2013


Signed-off-by: Andrei Gherzan <andrei.gherzan at windriver.com>
---
 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




More information about the yocto mailing list