extra hd: fix mountpoint check.
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 20 Dec 2010 11:48:52 +0000 (12:48 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 20 Dec 2010 11:48:52 +0000 (12:48 +0100)
html/cgi-bin/extrahd.cgi

index b9f42abe9649bf90fb6e733403d885d6f4cf102a..2ea41788654939dc488cfce277b49d6c574d2f73 100644 (file)
@@ -139,7 +139,7 @@ END
        {
                @deviceline = split( /\;/, $deviceentry );
                my $color="$Header::colourred";
-               if ( `/bin/mountpoint $deviceline[2]` ) {
+               if ( ! `/bin/mountpoint $deviceline[2] | grep " not "`  ) {
                        $color=$Header::colourgreen;
                }
                print <<END