]> code.ossystems Code Review - openembedded-core.git/commitdiff
iproute2: Fix alternative link for ip command
authorYi Zhao <yi.zhao@windriver.com>
Wed, 17 Jul 2013 09:06:57 +0000 (17:06 +0800)
committerSaul Wold <sgw@linux.intel.com>
Thu, 18 Jul 2013 14:16:17 +0000 (07:16 -0700)
In busybox the default location of symbolic link for command ip is
/sbin/ip. But in iproute2, the alternatvie link for ip is /bin/ip.
It will cause an error when running update-alternatives:
Cannot register alternative ip to /bin/ip since it is already registered
to /sbin/ip.

[YOCTO #4855]

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-connectivity/iproute2/iproute2.inc

index fb233ebd43b61445743dec28e010d84c29c7dedb..3db21db8d9f4b47be50f61dd03cb404151818174 100644 (file)
@@ -31,7 +31,7 @@ FILES_${PN}-dbg += "${libdir}/tc/.debug"
 
 ALTERNATIVE_${PN} = "ip"
 ALTERNATIVE_TARGET[ip] = "${base_sbindir}/ip.${BPN}"
-ALTERNATIVE_LINK_NAME[ip] = "${base_bindir}/ip"
+ALTERNATIVE_LINK_NAME[ip] = "${base_sbindir}/ip"
 ALTERNATIVE_PRIORITY = "100"
 
 PARALLEL_MAKE = ""