[packages] 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)
commit8d561f1c62530c3f5bb1ba3e4bfb5d5a5a45eb6f
tree9caaa78e45cc02e17021b9b7ab5cf14569fb80dd
parent91e975239a8c7073c0a83c06f4b40dfd736186a6
[packages] 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