hop penalty script hinzugefuegt
This commit is contained in:
parent
e985d56db8
commit
57925403f7
7 changed files with 106 additions and 0 deletions
16
Richtfunk/bb-doormann22-kern/etc/rc.local
Normal file
16
Richtfunk/bb-doormann22-kern/etc/rc.local
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Put your custom commands here that should be executed once
|
||||
# the system init finished. By default this file does nothing.
|
||||
|
||||
# Hop penalty heruntersetzen
|
||||
# No uci support for hop penalty after Gluon v2019.1.2
|
||||
INTERFACE="bat0"
|
||||
PENALTY="1"
|
||||
CURRENT=$(cat /sys/class/net/$INTERFACE/mesh/hop_penalty)
|
||||
if [ "$PENALTY" != "$CURRENT" ]; then
|
||||
echo $PENALTY > /sys/class/net/$INTERFACE/mesh/hop_penalty
|
||||
uci set batman-adv.$INTERFACE.hop_penalty=$PENALTY
|
||||
uci commit batman-adv
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue