mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
|
||||
|
||||
|
||||
IFACE=`echo $0 | awk -F_ '{print $1}'`
|
||||
IFACE=${0##*vnstat_}
|
||||
|
||||
|
||||
# Config section
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue