Просмотр исходного кода

check_dhcp: fix tests interface detection

Sven Nierlein 12 лет назад
Родитель
Сommit
08d554ada1
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      plugins-root/t/check_dhcp.t

+ 1 - 1
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;
 }