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:
parent
73bf794ad9
commit
a2f35e9b68
@ -16,7 +16,7 @@
|
||||
|
||||
|
||||
|
||||
IFACE=`echo $0 | awk -F_ '{print $1}'`
|
||||
IFACE=${0##*vnstat_}
|
||||
|
||||
|
||||
# Config section
|
||||
|
Loading…
Reference in New Issue
Block a user