olsrd: init: cleanup an expensive/forky call
authorSaverio Proto <zioproto@gmail.com>
Tue, 19 Feb 2013 17:01:38 +0000 (17:01 +0000)
committerSaverio Proto <zioproto@gmail.com>
Tue, 19 Feb 2013 17:01:38 +0000 (17:01 +0000)
commit35d6f3a18220cdebd1fc2bc0fc3139220ab19a24
treebbcee02e186e394bba48a95f7b4badc48dd6187b
parent60261e0453a1dc751456c7d95480177c641d77aa
olsrd: init: cleanup an expensive/forky call

for determining all gateways in all routing tables
1) write out the ip-call, never ever abbreviate in scripts
2) avoid forks: sorting/uniq is not needed, if we only append
   yet unappended words
3) use an extra function() for this, better readable
4) check for installed ip-command

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>
SVN-Revision: 35680
net/olsrd/files/olsrd.init