From f9264a48d59a22682229cf6e2e19615140001abc Mon Sep 17 00:00:00 2001 From: John Hodge Date: Wed, 20 Jun 2012 22:55:54 +0800 Subject: [PATCH] Modules/InitRD - Added comment support --- KernelLand/Modules/Filesystems/InitRD/GenerateInitRD.php | 1 + 1 file changed, 1 insertion(+) 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)) { -- 2.20.1