[pve-devel] r5997 - pve-common/trunk/data/PVE

svn-commits at proxmox.com svn-commits at proxmox.com
Wed May 18 13:16:36 CEST 2011


Author: dietmar
Date: 2011-05-18 13:16:36 +0200 (Wed, 18 May 2011)
New Revision: 5997

Modified:
   pve-common/trunk/data/PVE/INotify.pm
Log:


Modified: pve-common/trunk/data/PVE/INotify.pm
===================================================================
--- pve-common/trunk/data/PVE/INotify.pm	2011-05-18 10:54:32 UTC (rev 5996)
+++ pve-common/trunk/data/PVE/INotify.pm	2011-05-18 11:16:36 UTC (rev 5997)
@@ -770,6 +770,7 @@
 
     if (!$ifaces->{lo}) {
 	$ifaces->{lo}->{method} = 'loopback';
+	$ifaces->{lo}->{type} = 'loopback';
 	$ifaces->{lo}->{autostart} = 1;
     }
 
@@ -795,6 +796,8 @@
 	    }
 	} elsif ($iface =~ m/^eth[0-9]$/) {
 	    $d->{type} = 'eth';
+	} elsif ($iface =~ m/^lo$/) {
+	    $d->{type} = 'loopback';
 	} else {
 	    $d->{type} = 'unknown';
 	}




More information about the pve-devel mailing list