2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Correct wildcard name handling

The previous awk function did not work for my system, always returned the script name instead. Replaced with the same clean and sanitary bash variable logic that if_ uses to extract the interface name from $0.
This commit is contained in:
Bryce Chidester 2012-09-24 14:45:00 -07:00
parent 73bf794ad9
commit a2f35e9b68

View File

@ -16,7 +16,7 @@
IFACE=`echo $0 | awk -F_ '{print $1}'`
IFACE=${0##*vnstat_}
# Config section