From: Zhouping L. <zl...@re...> - 2013-01-22 01:42:20
|
On 01/22/2013 12:00 AM, ch...@su... wrote: > Hi! >> 'ip' tools is more general than 'ifconfig', and there are some >> distros don't support to install 'ifconfig' tools under default, >> which will cause such below error: >> >> sh: ifconfig: command not found >> sendmsg01 1 TBROK : ifconfig failed to bring up loop back device >> sendmsg01 2 TBROK : Remaining cases broken >> >> the patch displaced 'ifconfig' using 'ip', and also the case need root >> permission and checking capture unexpected signal. > But this breaks distros that yet doesn't install ip by default. What > about trying ip and fallback to ifconfig if ip has failed? Ok, I will send V2, thanks for reviewing. Zhouping |