source: packages/admin/muninlite/patches/200-add-tap-dev.patch @ 26973

Last change on this file since 26973 was 26973, checked in by cshore, 5 years ago

[naalstones] muninlite: Fixes: Error messages on server due to missing ethtool on node, recognition of tapX devices, recognition of openwrt bridges, and workaround for dashes in interface names (replace with an underscore on graph)

File size: 951 bytes
  • munin-node.in

    a b RES="" 
    7272for PLUG in $PLUGINS 
    7373do  
    7474  if [ "$PLUG" = "if_" ]; then   
    75     for INTER in $(grep '^ *\(ppp\|eth\|wlan\|ath\|ra\|ipsec\)\([^:]\)\{1,\}:' /proc/net/dev | cut -f1 -d: | sed 's/ //g'); 
     75    for INTER in $(grep '^ *\(ppp\|eth\|wlan\|ath\|ra\|ipsec\|tap\)\([^:]\)\{1,\}:' /proc/net/dev | cut -f1 -d: | sed 's/ //g'); 
    7676    do 
    7777      INTERRES=$(echo $INTER | sed 's/\./VLAN/') 
    7878      RES="$RES if_$INTERRES" 
    do 
    8080      eval "config_if_${INTERRES}() { config_if $INTER $@; };" 
    8181    done 
    8282  elif [ "$PLUG" = "if_err_" ]; then 
    83     for INTER in $(grep '^ *\(ppp\|eth\|wlan\|ath\|ra\|ipsec\)\([^:]\)\{1,\}:' /proc/net/dev | cut -f1 -d: | sed 's/ //g'); 
     83    for INTER in $(grep '^ *\(ppp\|eth\|wlan\|ath\|ra\|ipsec\|tap\)\([^:]\)\{1,\}:' /proc/net/dev | cut -f1 -d: | sed 's/ //g'); 
    8484    do 
    8585      INTERRES=$(echo $INTER | sed 's/\./VLAN/') 
    8686      RES="$RES if_err_$INTERRES" 
Note: See TracBrowser for help on using the repository browser.