Open xanoxes opened 1 month ago
Honestly, I don't like the "try things again if they fail" approach. It is not a sign of good design. But the network-scripts always had ton of hacks, so I am probably fine with adding one.
But please try to do this a bit nicer; copying a code and putting it in else close under is ugly as hell. What I could imagine is a new ARPING_RETRY or ARPING_TRIES option and then looping over arping until the limit is hit. And this would also allow not to change the behaviour and keep this opt-in.
You're right, its ugly. So i refactor it with ARPING_TRIES. Please review this PR again.
And please squash your commits.
@lnykryn
retry arping one more time in ifup-eth when sendto failed