summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2013-06-25 16:45:12 (GMT)
committerTom Zanussi <tom.zanussi@linux.intel.com>2013-06-25 21:07:54 (GMT)
commitfc9cba841017972bfdebbeef5144aa962a61ec65 (patch)
tree0b5c970ab632f94ad4cf160b91a1d709ffffa344 /common
parenta4c38c04e9638ec3314823fc1d69f4f0e21b17ca (diff)
downloadmeta-intel-fc9cba841017972bfdebbeef5144aa962a61ec65.tar.gz
lms8: handle different host setups
The configure script looks at the *host* environment to decide where to install the init script, so it's location at packaging time can change. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Diffstat (limited to 'common')
-rw-r--r--common/recipes-bsp/amt/lms8_8.0.0-7.bb8
1 files changed, 7 insertions, 1 deletions
diff --git a/common/recipes-bsp/amt/lms8_8.0.0-7.bb b/common/recipes-bsp/amt/lms8_8.0.0-7.bb
index fbb4e45..65c413a 100644
--- a/common/recipes-bsp/amt/lms8_8.0.0-7.bb
+++ b/common/recipes-bsp/amt/lms8_8.0.0-7.bb
@@ -26,7 +26,13 @@ INITSCRIPT_PARAMS = "defaults"
26do_install_append () { 26do_install_append () {
27 mv ${D}/${sbindir}/lms ${D}/${sbindir}/lms8 27 mv ${D}/${sbindir}/lms ${D}/${sbindir}/lms8
28 install -d ${D}${sysconfdir}/init.d 28 install -d ${D}${sysconfdir}/init.d
29 mv ${D}${sysconfdir}/rc.d/init.d/lms ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} 29 # The configure script looks at the host to decide where to put init
30 # scripts, so move it at the same time as renaming it.
31 if test -f ${D}${sysconfdir}/rc.d/init.d/lms ; then
32 mv ${D}${sysconfdir}/rc.d/init.d/lms ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
33 else
34 mv ${D}${sysconfdir}/init.d/lms ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
35 fi
30 sed -i 's/^NAME=lms/NAME=lms8/' ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} 36 sed -i 's/^NAME=lms/NAME=lms8/' ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
31 rmdir ${D}${datadir} || : 37 rmdir ${D}${datadir} || :
32} 38}