diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2013-03-22 10:11:41 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-22 16:54:37 +0000 |
commit | e93b6376a0cff5321dd7fc13a88c8b06ae8b83c7 (patch) | |
tree | 996ae55651ef0f7096672cd292d71d5ff0a5483f /meta/recipes-connectivity/connman | |
parent | fdd76ead8573a6c0ca39602b8e894291edc171aa (diff) | |
download | ast2050-yocto-poky-e93b6376a0cff5321dd7fc13a88c8b06ae8b83c7.zip ast2050-yocto-poky-e93b6376a0cff5321dd7fc13a88c8b06ae8b83c7.tar.gz |
connman-conf: Move the setup script into /usr/lib/connman
The /etc/connman is not suitable for the setup script.
There are other connman related scripts in /usr/lib/connman
so moving the wired setup script there.
(From OE-Core rev: 858ad53aee9ef5848c09d76c0e6bf464bc31d30e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/connman')
-rw-r--r-- | meta/recipes-connectivity/connman/connman-conf.bb | 8 | ||||
-rw-r--r-- | meta/recipes-connectivity/connman/connman/connman | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/meta/recipes-connectivity/connman/connman-conf.bb b/meta/recipes-connectivity/connman/connman-conf.bb index 7b99953..6ecfbfb 100644 --- a/meta/recipes-connectivity/connman/connman-conf.bb +++ b/meta/recipes-connectivity/connman/connman-conf.bb @@ -6,16 +6,18 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=80 SRC_URI_append_qemuall = "file://wired.config \ file://wired-setup \ " -PR = "r1" +PR = "r2" PACKAGE_ARCH = "${MACHINE_ARCH}" +FILES_${PN} = "${localstatedir}/* ${libdir}/*" + do_install() { #Configure Wired network interface in case of qemu* machines if test -e ${WORKDIR}/wired.config && test -e ${WORKDIR}/wired-setup; then install -d ${D}${localstatedir}/lib/connman install -m 0644 ${WORKDIR}/wired.config ${D}${localstatedir}/lib/connman - install -d ${D}${sysconfdir}/connman - install -m 0755 ${WORKDIR}/wired-setup ${D}${sysconfdir}/connman + install -d ${D}${libdir}/connman + install -m 0755 ${WORKDIR}/wired-setup ${D}${libdir}/connman fi } diff --git a/meta/recipes-connectivity/connman/connman/connman b/meta/recipes-connectivity/connman/connman/connman index ffd7fac..a111f60 100644 --- a/meta/recipes-connectivity/connman/connman/connman +++ b/meta/recipes-connectivity/connman/connman/connman @@ -32,8 +32,8 @@ do_start() { ethn=`ifconfig | grep eth | sed -e "s/\(eth[0-9]\)\(.*\)/\1/"` EXTRA_PARAM="-I $ethn" fi - if [ -f /etc/connman/wired-setup ] ; then - . /etc/connman/wired-setup + if [ -f /usr/lib/connman/wired-setup ] ; then + . /usr/lib/connman/wired-setup fi $DAEMON $EXTRA_PARAM } |