charles-henri.gros+openmoko at m4x.org
Sun Sep 14 06:09:11 CEST 2008
Joel Newkirk wrote:
> Quick question, hopefully someone can instantly see my error:
> I've built the full iproute2 toolset, and am working on an ipk/opk for ip
> and tc.
> The default om2008 at least, has /bin/ip linked to /bin/busybox. So that
> should be changed. For inspiration, I looked at the postinst script for
> grep, since it must perform the same changes. (point at full bin instead
> of busybox in postinst, restore in prerm) So I took the
> update-alternatives line from grep's postinst and simply replaced 'grep'
> with 'ip' everywhere.
> root at iota:~# update-alternatives --install /usr/bin/ip ip ip.ip 100
> update-alternatives: Error: cannot register alternative ip to /usr/bin/ip
> since it is already registered to /bin/ip
> Isn't this the point of update-alternatives - to allow multiple possible
> binaries, and 'register' the one with highest priority? What have I done
> wrong? And why is the <path> component grep.grep (or in my case ip.ip)??
grep.grep is the binary that contains what the "grep" package installs.
You should probably install your "ip" as "ip.ip", or use /usr/bin/ip (if
that's where you install it)
So the command would look like (I think):
update-alternatives --install /bin/ip ip /usr/bin/ip 100
More information about the community