extrahd: display also non-partitioned disks.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 17 Apr 2011 16:07:54 +0000 (18:07 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 17 Apr 2011 16:07:54 +0000 (18:07 +0200)
html/cgi-bin/extrahd.cgi

index 2ea4178..fa12dbe 100644 (file)
@@ -202,7 +202,7 @@ END
                foreach $partitionentry (sort @partitions)
                {
                        @partitionline = split( /\;/, $partitionentry );
-                       if (( "$partitionline[0]" =~ /^$scanline[0]/ ) && ! ( "$partitionline[0]" eq "$scanline[0]" )) {
+                       if (( "$partitionline[0]" =~ /^$scanline[0]/ ) && !( "$partitionline[2]" == "" )) {
                                $size = int($partitionline[1] / 1024);
                                print <<END
                                <form method='post' action='$ENV{'SCRIPT_NAME'}'>