From 08d554ada1d12a0a0bc9c2e6e218789e05287af8 Mon Sep 17 00:00:00 2001 From: Sven Nierlein Date: Tue, 17 Sep 2013 13:13:26 +0200 Subject: check_dhcp: fix tests interface detection 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", # try to determince interface my $interface = ''; -if(`ifconfig -a 2>/dev/null` =~ m/^(e(m|th)\d+)/mx and $1 ne 'eth0') { +if(`ifconfig -a 2>/dev/null` =~ m/^(e\w*\d+)/mx and $1 ne 'eth0') { $interface = ' -i '.$1; } -- cgit v0.10-9-g596f