Modules/InitRD - Added comment support
authorJohn Hodge <[email protected]>
Wed, 20 Jun 2012 14:55:54 +0000 (22:55 +0800)
committerJohn Hodge <[email protected]>
Wed, 20 Jun 2012 14:55:54 +0000 (22:55 +0800)
KernelLand/Modules/Filesystems/InitRD/GenerateInitRD.php

index e7cd4f7..ca7be3d 100644 (file)
@@ -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))
        {

UCC git Repository :: git.ucc.asn.au