On May 14, 2008, at 9:52 PM, Marek Lindner wrote:
I created a new batquagga version (0.2) that does exactly that and even when removing the "sleep" and "kill" commands from restore_defaults (), it works fine.
Unfortunately, it does not cover all the cases. I attached the test shell script I used. Without the sleep & kill it does not die ...
This is because you use a "while true" loop.
Try instead:
while read bla do echo "bla: $bla" done
The arguments patch or some other form of passing arguments is essential for using the policy-routing-script to redistribute routes from other protocols...
As I said: Your idea is excellent - we just looked for an easy way to find a suitable solution for all sort of cases. The latest revision (1066) contains a method to forward the given arguments. You can use it like this:
batmand --policy-routing-script "test.sh one two three" eth0:bat
or even
batmand --policy-routing-script "test.sh "one two three"" eth0:bat
Even simpler... Much better.
Greetings, Marek <test.sh> _______________________________________________ B.A.T.M.A.N mailing list B.A.T.M.A.N@open-mesh.net https://list.open-mesh.net/mm/listinfo/b.a.t.m.a.n