[OE-core] [PATCH] iproute2: create symbol link '/bin/ip' to '/sbin/ip.iproute2'
Andreas Oberritter
obi at opendreambox.org
Wed Jul 11 08:41:11 UTC 2018
On Wed, 11 Jul 2018 14:01:17 +0800
Haiqing Bai <Haiqing.Bai at 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.
>
> Signed-off-by: Haiqing Bai <Haiqing.Bai at 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
More information about the Openembedded-core
mailing list