Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] iproute2: create symbol link '/bin/ip' to '/sbin/ip.iproute2'
@ 2018-07-11  6:01 Haiqing Bai
  2018-07-11  8:41 ` Andreas Oberritter
  0 siblings, 1 reply; 5+ messages in thread
From: Haiqing Bai @ 2018-07-11  6:01 UTC (permalink / raw)
  To: openembedded-core, haiqing.bai

Some applications which depend on iproute/iproute2 need to
run '/sbin/ip.iproute2' through the symbol link '/bin/ip'
e.g ifupdown.

Signed-off-by: Haiqing Bai <Haiqing.Bai@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
-- 
2.13.3



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-07-13  9:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-11  6:01 [PATCH] iproute2: create symbol link '/bin/ip' to '/sbin/ip.iproute2' Haiqing Bai
2018-07-11  8:41 ` Andreas Oberritter
2018-07-12 20:19   ` Randy MacLeod
2018-07-13  2:06     ` Bai, Haiqing
2018-07-13  9:14       ` Andreas Oberritter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox