* Javier Fernandez-Sanguino [Fre Jul 01, 2011 at 10:30:16 +0200]: > On 1 July 2011 09:57, Christoph Maser <christoph.ma...@1und1.de> wrote:
> > cmaser@unigmx001:~$ dpkg -S /usr/sbin/arping > > arping: /usr/sbin/arping > I guessed so, the ifupdown-extra package in version 0.14 has the > location hardcoded for iputils-arping's arping binary which is in > /usr/bin/, so even if it adverstise arping as an alternative package > to provide the binary it was not prepared to work with it. > This has been fixed already in ifupdown-extra (0.16) along with > other differences between iputil's arping and arping's arping > * if-up-scripts/check-duplicate-ip: > - Make it possible to use arping's arping which: is located in another > directory, interprets parameters differently and does not support -q. > Thanks to Cristian Ionescu-Idbohrn for bringing up this issue > and providing a patch which I base the changes on (Closes: #614056) > You can find the full changes introduced in > http://anonscm.debian.org/gitweb/?p=collab-maint/ifupdown-extra.git;a=commitdiff;h=47f06fa5f6400ea1369421d86f5a040f00a1ec94 > I will try to push a fix for stable, for the time being, you can > easily install the latest ifupdown-extra package from testing or > unstable. They should install without any issues in a Squeeze system. This fix doesn't work. You can't just set: ARPING_EXTRAOPTS=">/dev/null" and then invoke arping with $ARPING_EXTRAOPTS, this doesn't do what you think it does but instead causes an invocation error. If you really don't want to just redirect the output of iptutil's arping also to /dev/null (which would make things easier overall and errors should go to stderr anyway), then something like: ,---- | if $ARPING_OF_IPUTILS ; then | ARP_REDIR="/dev/stdout" | else | ARP_REDIR="/dev/null" | fi | | $ARP_CMDLINE ... > $ARP_REDIR `---- should work (this is just demo code which needs to be integrated in the ifupdown script), but you should get the idea. To make it more clear: ,---- [ demonstration ] | % FOO="/dev/stdout" ; echo "foo" >$FOO | % foo | % FOO="/dev/null" ; echo "foo" >$FOO | % `---- regards, -mika-
signature.asc
Description: Digital signature