This commit adds a transparent wrapper which depending on the selected batman-adv routing algorithm calls either /usr/sbin/batctl or /usr/sbin/batctl-legacy. Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
10 lines
207 B
Bash
Executable File
10 lines
207 B
Bash
Executable File
#!/bin/sh
|
|
|
|
routing_algo="$(uci -q get batman-adv.bat0.routing_algo || echo 'BATMAN_IV')"
|
|
|
|
if [ "$routing_algo" = "BATMAN_IV_LEGACY" ]; then
|
|
exec /usr/sbin/batctl-legacy $@
|
|
else
|
|
exec /usr/sbin/batctl $@
|
|
fi
|