diff options
author | Darren Hart <dvhart@linux.intel.com> | 2011-03-12 00:15:41 -0800 |
---|---|---|
committer | Darren Hart <dvhart@linux.intel.com> | 2011-03-12 00:46:56 -0800 |
commit | d9ac50894e55b780aaab43b96536e0ce678ff8f7 (patch) | |
tree | 84e8979d6c56d940b64a132e660135772f6eaeef /meta-n450/recipes-bsp/n450-audio/n450-audio.bb | |
parent | d1ba49be3052aada2ca8fe8f12787b4fce8a6383 (diff) | |
download | meta-intel-d9ac50894e55b780aaab43b96536e0ce678ff8f7.tar.gz |
n450: replace n450-audio with a proper init script
Rewrite n450-audio based on /etc/init.d/skeleton. Update the install to
rewrite all the system paths.
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Diffstat (limited to 'meta-n450/recipes-bsp/n450-audio/n450-audio.bb')
-rw-r--r-- | meta-n450/recipes-bsp/n450-audio/n450-audio.bb | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/meta-n450/recipes-bsp/n450-audio/n450-audio.bb b/meta-n450/recipes-bsp/n450-audio/n450-audio.bb index 20e3a9ad..90ec267b 100644 --- a/meta-n450/recipes-bsp/n450-audio/n450-audio.bb +++ b/meta-n450/recipes-bsp/n450-audio/n450-audio.bb | |||
@@ -4,7 +4,7 @@ SECTION = "base" | |||
4 | LICENSE = "MIT" | 4 | LICENSE = "MIT" |
5 | LIC_FILES_CHKSUM = "file://${POKYBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" | 5 | LIC_FILES_CHKSUM = "file://${POKYBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" |
6 | 6 | ||
7 | PR = "r3" | 7 | PR = "r4" |
8 | 8 | ||
9 | inherit update-rc.d | 9 | inherit update-rc.d |
10 | 10 | ||
@@ -16,8 +16,15 @@ INITSCRIPT_NAME = "n450-audio" | |||
16 | INITSCRIPT_PARAMS = "defaults 90" | 16 | INITSCRIPT_PARAMS = "defaults 90" |
17 | 17 | ||
18 | do_install() { | 18 | do_install() { |
19 | install -d ${D}${sysconfdir} \ | 19 | install -d ${D}${sysconfdir} \ |
20 | ${D}${sysconfdir}/init.d | 20 | ${D}${sysconfdir}/init.d |
21 | install -m 0755 ${WORKDIR}/n450-audio ${D}${sysconfdir}/init.d | 21 | install -m 0755 ${WORKDIR}/n450-audio ${D}${sysconfdir}/init.d |
22 | cat ${WORKDIR}/${INITSCRIPT_NAME} | \ | ||
23 | sed -e 's,/etc,${sysconfdir},g' \ | ||
24 | -e 's,/usr/sbin,${sbindir},g' \ | ||
25 | -e 's,/var,${localstatedir},g' \ | ||
26 | -e 's,/usr/bin,${bindir},g' \ | ||
27 | -e 's,/usr,${prefix},g' > ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} | ||
28 | chmod 755 ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} | ||
22 | } | 29 | } |
23 | 30 | ||