moving /bin/ip to /sbin/ip?

Roy Marples uberlord at gentoo.org
Mon Sep 10 23:16:13 PDT 2007


On Tue, 2007-09-11 at 00:01 -0400, Paul Fox wrote:
> > On Mon, Sep 10, 2007 at 10:40:11PM +0200, Natanael Copa wrote:
>  > > It would be a lot easier for me to have the ip application in the same
>  > > place as the original iproute2. In fact it makes things alot more easy
>  > > to have the busybox applications in the same place as the original apps.
>  > > (not first time i meet this kind of problems)
>  > 
>  > $PATH?
> 
> no, his problem is that other apps refer to ip via its full path.
> $PATH isn't always the answer.
> 
> while i have no objection to having busybox put things in their
> standard places, i'd also point out that it's easy to fix this
> problem, via an early init.d script -- just move the ip app,
> or create a new link to it.

That would be a lot of places then.

coreutils upstream have changed the default location of some of their
binaries in the past. Also, defaults change from distro to distro.

A good example of this is gawk. Upstream default is /usr/bin whereas
Gentoo/Linux default is /bin as it's used by the boot process. However
with Gentoo/FreeBSD it's in /usr/bin as it's not used by the boot
process. Contrawise, Gentoo/FreeBSD uses sed in it's boot process, so it
lives in /bin whereas the FreeBSD default is in /usr/bin.

$PATH is the correct answer. The app should be fixed to use $PATH or
work out where the binary is at compile time as a last resort.

Thanks

Roy



More information about the busybox mailing list