gluon-mesh-batman-adv: add batctl wrapper for batman-adv vs. -legacy
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>
This commit is contained in:
parent
c10c54e807
commit
c007fe92c1
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
export PATH="/usr/local/sbin:$PATH"
|
9
package/gluon-mesh-batman-adv/files/usr/local/sbin/batctl
Executable file
9
package/gluon-mesh-batman-adv/files/usr/local/sbin/batctl
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/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
|
Loading…
Reference in New Issue
Block a user