On 07/11/2018 04:41 AM, Andreas Oberritter wrote:
On Wed, 11 Jul 2018 14:01:17 +0800
Haiqing Bai <haiqing....@windriver.com> wrote:
Some applications which depend on iproute/iproute2 need to
run '/sbin/ip.iproute2' through the symbol link '/bin/ip'
e.g ifupdown.
Update-alternatives is supposed to create this link already.
I assume that update-alternatives is creating
/sbin/ip -> /sbin/ip.iproute2
but for some reason ipupdown is looking for
/bin/ip
Is that right Haiqing ?
Why not fix ifupdown?
../Randy
Signed-off-by: Haiqing Bai <haiqing....@windriver.com>
---
meta/recipes-connectivity/iproute2/iproute2.inc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/recipes-connectivity/iproute2/iproute2.inc
b/meta/recipes-connectivity/iproute2/iproute2.inc
index 4fbfec6f08..71d04a1021 100644
--- a/meta/recipes-connectivity/iproute2/iproute2.inc
+++ b/meta/recipes-connectivity/iproute2/iproute2.inc
@@ -29,6 +29,8 @@ do_configure_append () {
do_install () {
oe_runmake DESTDIR=${D} install
mv ${D}${base_sbindir}/ip ${D}${base_sbindir}/ip.iproute2
+ install -d ${D}${base_bindir}
+ ln -s ${base_sbindir}/ip.iproute2 ${D}${base_bindir}/ip
install -d ${D}${datadir}
mv ${D}/share/* ${D}${datadir}/ || true
rm ${D}/share -rf || true
--
# Randy MacLeod
# Wind River Linux
--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core