connman-conf fixes
cover connman-conf fixes
Hi,
noticed some issues with connman-conf that is used to setup the ethernet in qemu image.
Cheers,
Jukka
Jukka Rissanen (2):
connman-conf: Move the setup script into /usr/lib/connman
connman-conf: Avoid appending IPv4 address
meta/recipes-connectivity/connman/connman-conf.bb | 8 +++++--- .../recipes-connectivity/connman/connman-conf/qemuall/wired-setup | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-)
Signature · 1 line
1.7.11.4
PATCH 1/2 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.
--- meta/recipes-connectivity/connman/connman-conf.bb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
meta/recipes-connectivity/connman/connman-conf.bb +5 -3
@@ -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 }
Signature · 1 line
1.7.11.4
Re: [PATCH 1/2] connman-conf: Move the setup script into /usr/lib/connman
Quoted 25 lines · Jukka Rissanen
The
/etc/connmanis not suitable for the setup script. There are other connman related scripts in/usr/lib/connmanso moving the wired setup script there.Signed-off-by Jukka Rissanen <[email protected]>--- meta/recipes-connectivity/connman/connman-conf.bb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)meta/recipes-connectivity/connman/connman-conf.bb +3
-1@@ -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() {
meta/recipes-connectivity/connman/connman-conf.bb LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=80 · line 23
Quoted 10 lines
meta/recipes-connectivity/connman/connman-conf.bb +2
-2#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 }
You've moved the files, fine, but what uses them and do we need to update the caller?
Cheers,
Richard
Re: [PATCH 1/2] connman-conf: Move the setup script into /usr/lib/connman
Hi Richard,
Quoted 23 lines · Richard Purdie
Quoted 22 lines · Jukka Rissanen
The
/etc/connmanis not suitable for the setup script. There are other connman related scripts in/usr/lib/connmanso moving the wired setup script there.Signed-off-by Jukka Rissanen <[email protected]>--- meta/recipes-connectivity/connman/connman-conf.bb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)meta/recipes-connectivity/connman/connman-conf.bb +1
-1@@ -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}"
Quoted 16 lines
meta/recipes-connectivity/connman/connman-conf.bb LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=80 · line 23
Quoted 13 lines
meta/recipes-connectivity/connman/connman-conf.bb +4
-2+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 }You've moved the files, fine, but what uses them and do we need to update the caller?
I sent a separate patch "[PATCH] connman-conf: Initial systemd support" for systemd support. I did not found any file that would have init.d support (I might have missed that one :)
Cheers,
Jukka
Re: [PATCH 1/2] connman-conf: Move the setup script into /usr/lib/connman
Hello Jukka,
Please check connman recipe.
Inside it, check connman/connman
for wired-setup support..
Please add a patch for that also.
Regards,
Cristian
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jukka Rissanen
Sent: Monday, March 18, 2013 4:35 PM
To: Richard Purdie
Cc: [email protected]
Subject: Re: [OE-core] [PATCH 1/2] connman-conf: Move the setup script into /usr/lib/connman
Hi Richard,
Quoted 24 lines · Richard Purdie
Quoted 23 lines · Jukka Rissanen
The
/etc/connmanis not suitable for the setup script. There are other connman related scripts in/usr/lib/connmanso moving the wired setup script there.Signed-off-by Jukka Rissanen <[email protected]>--- meta/recipes-connectivity/connman/connman-conf.bb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)meta/recipes-connectivity/connman/connman-conf.bb +1
-1@@ -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}"
Quoted 16 lines
meta/recipes-connectivity/connman/connman-conf.bb LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=80 · line 23
Quoted 13 lines
meta/recipes-connectivity/connman/connman-conf.bb +4
-2+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 }You've moved the files, fine, but what uses them and do we need to update the caller?
I sent a separate patch "[PATCH] connman-conf: Initial systemd support"
for systemd support. I did not found any file that would have init.d support (I might have missed that one :)
Really? So wired-setup was just placed there, without anybody using it?? :-P :-)
Cheers,
Jukka
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Re: [PATCH 1/2] connman-conf: Move the setup script into /usr/lib/connman
In reply to Jukka Rissanengit grep wired-setup
meta/recipes-connectivity/connman/connman-conf.bb: file://wired-setup \
meta/recipes-connectivity/connman/connman-conf.bb: if test -e ${WORKDIR}/wired.config && test -e ${WORKDIR}/wired-set
meta/recipes-connectivity/connman/connman-conf.bb: install -m 0755 ${WORKDIR}/wired-setup ${D}${sysconfdir}/connm
meta/recipes-connectivity/connman/connman/connman: if [ -f /etc/connman/wired-setup ] ; then
meta/recipes-connectivity/connman/connman/connman: . /etc/connman/wired-setup
-----Original Message-----
From: Iorga, Cristian
Sent: Tuesday, March 19, 2013 12:52 PM
To: 'Jukka Rissanen'; Richard Purdie
Cc: [email protected]
Subject: RE: [OE-core] [PATCH 1/2] connman-conf: Move the setup script into /usr/lib/connman
Hello Jukka,
Please check connman recipe.
Inside it, check connman/connman
for wired-setup support..
Please add a patch for that also.
Regards,
Cristian
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jukka Rissanen
Sent: Monday, March 18, 2013 4:35 PM
To: Richard Purdie
Cc: [email protected]
Subject: Re: [OE-core] [PATCH 1/2] connman-conf: Move the setup script into /usr/lib/connman
Hi Richard,
Quoted 24 lines · Richard Purdie
Quoted 23 lines · Jukka Rissanen
The
/etc/connmanis not suitable for the setup script. There are other connman related scripts in/usr/lib/connmanso moving the wired setup script there.Signed-off-by Jukka Rissanen <[email protected]>--- meta/recipes-connectivity/connman/connman-conf.bb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)meta/recipes-connectivity/connman/connman-conf.bb +1
-1@@ -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}"
Quoted 16 lines
meta/recipes-connectivity/connman/connman-conf.bb LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=80 · line 23
Quoted 13 lines
meta/recipes-connectivity/connman/connman-conf.bb +4
-2+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 }You've moved the files, fine, but what uses them and do we need to update the caller?
I sent a separate patch "[PATCH] connman-conf: Initial systemd support"
for systemd support. I did not found any file that would have init.d support (I might have missed that one :)
Really? So wired-setup was just placed there, without anybody using it?? :-P :-)
Cheers,
Jukka
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
PATCH 2/2 connman-conf: Avoid appending IPv4 address
In reply to Jukka RissanenIf run more than once, the IP addresses would be appended to IPv4 variable. Avoid that by rewriting the IPv4 always.
--- meta/recipes-connectivity/connman/connman-conf/qemuall/wired-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-connectivity/connman/connman-conf/qemuall/wired-setup +1 -1
@@ -12,5 +12,5 @@ if [ "x$NET_CONF" = "x" ]; then rm ${CONFIGF} else # Setup a connman config accordingly - sed -i -e "s|^\(IPv4 =\)|\1 ${NET_CONF}|" ${CONFIGF} + sed -i -e "s|^IPv4 =.*|IPv4 = ${NET_CONF}|" ${CONFIGF} fi
Signature · 1 line
1.7.11.4