From 4df6a1644a91ec19c2cd82c875b5424863994354 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 2 Aug 2012 07:28:38 +0200 Subject: [PATCH] fix regex for network devices --- Makefile | 2 +- data/PVE/INotify.pm | 4 ++-- debian/changelog | 6 ++++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d9f1ac7..b1dcc2b 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ RELEASE=2.1 VERSION=1.0 -PKGREL=29 +PKGREL=30 PACKAGE=libpve-common-perl diff --git a/data/PVE/INotify.pm b/data/PVE/INotify.pm index 110e034..77e2fd7 100644 --- a/data/PVE/INotify.pm +++ b/data/PVE/INotify.pm @@ -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'; diff --git a/debian/changelog b/debian/changelog index cc71cc6..c24fb49 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +libpve-common-perl (1.0-30) unstable; urgency=low + + * allow more that 10 physical network interfaces + + -- Proxmox Support Team 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) -- 2.39.2