diff options
author | Sven Nierlein <Sven.Nierlein@consol.de> | 2013-09-17 11:13:26 (GMT) |
---|---|---|
committer | Sven Nierlein <sven@consol.de> | 2013-09-17 11:13:26 (GMT) |
commit | 08d554ada1d12a0a0bc9c2e6e218789e05287af8 (patch) | |
tree | 53d107c23b70d2e4d1ef7d8448c05a2b6df240ba /plugins-root | |
parent | 9090beb058739f24930c27a3864daa773985144d (diff) | |
download | monitoring-plugins-08d554ada1d12a0a0bc9c2e6e218789e05287af8.tar.gz |
check_dhcp: fix tests interface detection
Diffstat (limited to 'plugins-root')
-rw-r--r-- | plugins-root/t/check_dhcp.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-root/t/check_dhcp.t b/plugins-root/t/check_dhcp.t index 555523a..222f454 100644 --- a/plugins-root/t/check_dhcp.t +++ b/plugins-root/t/check_dhcp.t | |||
@@ -36,7 +36,7 @@ my $hostname_invalid = getTestParameter( "NP_HOSTNAME_INVALID", | |||
36 | 36 | ||
37 | # try to determince interface | 37 | # try to determince interface |
38 | my $interface = ''; | 38 | my $interface = ''; |
39 | if(`ifconfig -a 2>/dev/null` =~ m/^(e(m|th)\d+)/mx and $1 ne 'eth0') { | 39 | if(`ifconfig -a 2>/dev/null` =~ m/^(e\w*\d+)/mx and $1 ne 'eth0') { |
40 | $interface = ' -i '.$1; | 40 | $interface = ' -i '.$1; |
41 | } | 41 | } |
42 | 42 | ||