]> git.proxmox.com Git - pve-common.git/commitdiff
fix regex for network devices
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 2 Aug 2012 05:28:38 +0000 (07:28 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 2 Aug 2012 05:28:38 +0000 (07:28 +0200)
Makefile
data/PVE/INotify.pm
debian/changelog

index d9f1ac7d624622601b4d7d338b06844ad5e634d7..b1dcc2b7b94c9396b208060c605d1bf8b18d2dc4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 RELEASE=2.1
 
 VERSION=1.0
-PKGREL=29
+PKGREL=30
 
 PACKAGE=libpve-common-perl
 
index 110e0341b1c7cf106e31eb125f9ee31021b6fb52..77e2fd7aff1c70afd2d254125de33fabec6ca70f 100644 (file)
@@ -685,7 +685,7 @@ sub read_etc_network_interfaces {
 
     if (my $fd2 = IO::File->new("/proc/net/dev", "r")) {
        while (defined ($line = <$fd2>)) {
-           if ($line =~ m/^\s*(eth[0-9]):.*/) {
+           if ($line =~ m/^\s*(eth\d+):.*/) {
                $ifaces->{$1}->{exists} = 1;
            }
        }
@@ -810,7 +810,7 @@ sub read_etc_network_interfaces {
                $ifaces->{$1}->{exists} = 0;
                $d->{exists} = 0;
            }
-       } elsif ($iface =~ m/^eth[0-9]$/) {
+       } elsif ($iface =~ m/^eth\d+$/) {
            $d->{type} = 'eth';
        } elsif ($iface =~ m/^lo$/) {
            $d->{type} = 'loopback';
index cc71cc698a811f57b9d9a4d3f3c35cb157fb4554..c24fb499f6e6d68f6306f5cecd0cac6d891369aa 100644 (file)
@@ -1,3 +1,9 @@
+libpve-common-perl (1.0-30) unstable; urgency=low
+
+  * allow more that 10 physical network interfaces
+
+ -- Proxmox Support Team <support@proxmox.com>  Thu, 02 Aug 2012 07:28:17 +0200
+
 libpve-common-perl (1.0-29) unstable; urgency=low
 
   * AbsrtactMigrate: use rsync flags AX (preserve ACLs and xattr)