[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)
commitcfa9769cd6775b9ae961f91b1a8b53d996209288
tree60d68b285aa31f3de2f742c9feec2c2fa5c7e5ab
parentcb75e9bf4c44cd54be79afd7a396fcbfe30a432a
[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>
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@35680 3c298f89-4303-0410-b956-a3cf2f4a3e73
files/olsrd.init