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

svn-commits at proxmox.com svn-commits at proxmox.com
Mon May 23 13:19:16 CEST 2011


Author: dietmar
Date: 2011-05-23 13:19:16 +0200 (Mon, 23 May 2011)
New Revision: 6009

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


Modified: pve-common/trunk/data/PVE/INotify.pm
===================================================================
--- pve-common/trunk/data/PVE/INotify.pm	2011-05-23 09:56:00 UTC (rev 6008)
+++ pve-common/trunk/data/PVE/INotify.pm	2011-05-23 11:19:16 UTC (rev 6009)
@@ -720,6 +720,7 @@
 	} elsif ($line =~ m/^iface\s+(\S+)\s+inet\s+(\S+)\s*$/) {
 	    my $i = $1;
 	    $ifaces->{$i}->{method} = $2;
+
 	    my $d = $ifaces->{$i};
 	    while (defined ($line = <$fh>) && ($line =~ m/^\s+((\S+)\s+(.+))$/)) {
 		my $option = $1;
@@ -764,6 +765,7 @@
 	}
     }
 
+
     if (!$gateway) {
 	$ifaces->{vmbr0}->{gateway} = '';
     }
@@ -862,6 +864,8 @@
 	$raw .= "\t$option\n";
     }
 
+    $raw .= "\n";
+
     return $raw;
 }
 




More information about the pve-devel mailing list