hop penalty script hinzugefuegt
This commit is contained in:
parent
e985d56db8
commit
57925403f7
15
Richtfunk/bb-artfiles-kern/etc/rc.local
Executable file
15
Richtfunk/bb-artfiles-kern/etc/rc.local
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
# 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="5"
|
||||||
|
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
|
15
Richtfunk/bb-cko-kern/etc/rc.local
Normal file
15
Richtfunk/bb-cko-kern/etc/rc.local
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# 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
|
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
|
||||||
|
|
15
Richtfunk/bb-flora-kern/etc/rc.local
Normal file
15
Richtfunk/bb-flora-kern/etc/rc.local
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# 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
|
|
@ -1,6 +1,7 @@
|
||||||
# Put your custom commands here that should be executed once
|
# Put your custom commands here that should be executed once
|
||||||
# the system init finished. By default this file does nothing.
|
# the system init finished. By default this file does nothing.
|
||||||
|
|
||||||
|
# Routing-Regel fuer cloud und speicher
|
||||||
CLOUD_IPV4=/lib/gluon/ebtables/109-local-forward-allow-speicher
|
CLOUD_IPV4=/lib/gluon/ebtables/109-local-forward-allow-speicher
|
||||||
if [ ! -f $CLOUD_IPV4 ]; then
|
if [ ! -f $CLOUD_IPV4 ]; then
|
||||||
echo "Installing cloud IPv4 rule"
|
echo "Installing cloud IPv4 rule"
|
||||||
|
@ -11,6 +12,7 @@ else
|
||||||
echo "Cloud IPv4 rule already exists"
|
echo "Cloud IPv4 rule already exists"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# SNMP installieren
|
||||||
HAS_SNMPD=$(opkg list-installed | grep ^snmpd | wc -l)
|
HAS_SNMPD=$(opkg list-installed | grep ^snmpd | wc -l)
|
||||||
if [ $HAS_SNMPD -eq 0 ]; then
|
if [ $HAS_SNMPD -eq 0 ]; then
|
||||||
echo "Installing snmpd"
|
echo "Installing snmpd"
|
||||||
|
@ -19,4 +21,17 @@ else
|
||||||
echo "snmpd already installed"
|
echo "snmpd already installed"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Hop penalty heruntersetzen
|
||||||
|
# No uci support for hop penalty after Gluon v2019.1.2
|
||||||
|
INTERFACE="bat0"
|
||||||
|
PENALTY="5"
|
||||||
|
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
|
exit 0
|
||||||
|
|
||||||
|
|
15
Richtfunk/bb-stpaulikirche-kern/etc/rc.local
Normal file
15
Richtfunk/bb-stpaulikirche-kern/etc/rc.local
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# 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
|
15
Richtfunk/bb-werkhof-kern/etc/rc.local
Normal file
15
Richtfunk/bb-werkhof-kern/etc/rc.local
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# 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…
Reference in a new issue