mirror of
https://github.com/munin-monitoring/muninlite.git
synced 2025-01-03 11:42:10 +01:00
Fix error messages on server regarding recognition bridge interfaces
OpenWrt uses the naming convention "br-*" for bridge network interfaces. Source: patch "210-add-bridge-devs" from OpenWrt Author: cshore
This commit is contained in:
parent
2073b97a6c
commit
f906a5f4da
1 changed files with 4 additions and 4 deletions
|
@ -72,17 +72,17 @@ RES=""
|
||||||
for PLUG in $PLUGINS
|
for PLUG in $PLUGINS
|
||||||
do
|
do
|
||||||
if [ "$PLUG" = "if_" ]; then
|
if [ "$PLUG" = "if_" ]; then
|
||||||
for INTER in $(grep '^ *\(ppp\|eth\|wlan\|ath\|ra\|ipsec\|tap\)\([^:]\)\{1,\}:' /proc/net/dev | cut -f1 -d: | sed 's/ //g');
|
for INTER in $(grep '^ *\(ppp\|eth\|wlan\|ath\|ra\|ipsec\|tap\|br-\)\([^:]\)\{1,\}:' /proc/net/dev | cut -f1 -d: | sed 's/ //g');
|
||||||
do
|
do
|
||||||
INTERRES=$(echo $INTER | sed 's/\./VLAN/')
|
INTERRES=$(echo $INTER | sed -e 's/\./VLAN/' -e 's/\-/_/')
|
||||||
RES="$RES if_$INTERRES"
|
RES="$RES if_$INTERRES"
|
||||||
eval "fetch_if_${INTERRES}() { fetch_if $INTER $@; };"
|
eval "fetch_if_${INTERRES}() { fetch_if $INTER $@; };"
|
||||||
eval "config_if_${INTERRES}() { config_if $INTER $@; };"
|
eval "config_if_${INTERRES}() { config_if $INTER $@; };"
|
||||||
done
|
done
|
||||||
elif [ "$PLUG" = "if_err_" ]; then
|
elif [ "$PLUG" = "if_err_" ]; then
|
||||||
for INTER in $(grep '^ *\(ppp\|eth\|wlan\|ath\|ra\|ipsec\|tap\)\([^:]\)\{1,\}:' /proc/net/dev | cut -f1 -d: | sed 's/ //g');
|
for INTER in $(grep '^ *\(ppp\|eth\|wlan\|ath\|ra\|ipsec\|tap\|br-\)\([^:]\)\{1,\}:' /proc/net/dev | cut -f1 -d: | sed 's/ //g');
|
||||||
do
|
do
|
||||||
INTERRES=$(echo $INTER | sed 's/\./VLAN/')
|
INTERRES=$(echo $INTER | sed -e 's/\./VLAN/' -e 's/\-/_/')
|
||||||
RES="$RES if_err_$INTERRES"
|
RES="$RES if_err_$INTERRES"
|
||||||
eval "fetch_if_err_${INTERRES}() { fetch_if_err $INTER $@; };"
|
eval "fetch_if_err_${INTERRES}() { fetch_if_err $INTER $@; };"
|
||||||
eval "config_if_err_${INTERRES}() { config_if_err $INTER $@; };"
|
eval "config_if_err_${INTERRES}() { config_if_err $INTER $@; };"
|
||||||
|
|
Loading…
Reference in a new issue