From: John Hodge Date: Wed, 20 Jun 2012 14:55:54 +0000 (+0800) Subject: Modules/InitRD - Added comment support X-Git-Tag: rel0.15~611^2~51 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=f9264a48d59a22682229cf6e2e19615140001abc;p=tpg%2Facess2.git Modules/InitRD - Added comment support --- diff --git a/KernelLand/Modules/Filesystems/InitRD/GenerateInitRD.php b/KernelLand/Modules/Filesystems/InitRD/GenerateInitRD.php index e7cd4f7e..ca7be3d5 100644 --- a/KernelLand/Modules/Filesystems/InitRD/GenerateInitRD.php +++ b/KernelLand/Modules/Filesystems/InitRD/GenerateInitRD.php @@ -28,6 +28,7 @@ $lStack = array( array("",array()) ); foreach($lines as $line) { $line = trim($line); + if($line[0] == "#") continue; // Directory if(preg_match('/^Dir\s+"([^"]+)"\s+{$/', $line, $matches)) {