From: Arne Fitzenreiter Date: Fri, 10 Dec 2010 12:29:23 +0000 (+0100) Subject: extrahd: Add UUID to table. X-Git-Tag: v2.9-beta1~12 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=e528205ed8534cec2c29c0932108d98570c7f07a extrahd: Add UUID to table. Fix blkid without cache does not work as nobody. --- diff --git a/config/extrahd/extrahd.pl b/config/extrahd/extrahd.pl index 5f623fd1b6..6593ca47de 100644 --- a/config/extrahd/extrahd.pl +++ b/config/extrahd/extrahd.pl @@ -2,7 +2,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# Copyright (C) 2010 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -84,8 +84,11 @@ if ( "$ARGV[0]" eq "mount" ) { exit(1); } +} elsif ( "$ARGV[0]" eq "scanhd") { + system("/usr/local/bin/scanhd $ARGV[1]"); + } else { - print "Usage: $0 (mount|umount) mountpoint\n"; + print "Usage: $0 (mount|umount|scanhd) mountpoint\n"; } ############################################################################################################################ diff --git a/html/cgi-bin/extrahd.cgi b/html/cgi-bin/extrahd.cgi index fd3555468a..b9f42abe96 100644 --- a/html/cgi-bin/extrahd.cgi +++ b/html/cgi-bin/extrahd.cgi @@ -2,7 +2,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# Copyright (C) 2010 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -48,8 +48,8 @@ my $partitionentry = ""; my $devicefile = "/var/ipfire/extrahd/devices"; my $scanfile = "/var/ipfire/extrahd/scan"; my $partitionsfile = "/var/ipfire/extrahd/partitions"; -system("/usr/local/bin/scanhd ide"); -system("/usr/local/bin/scanhd partitions"); +system("/usr/local/bin/extrahdctrl scanhd ide"); +system("/usr/local/bin/extrahdctrl scanhd partitions"); &Header::showhttpheaders(); @@ -181,7 +181,7 @@ END @scanline = split( /\;/, $scanentry ); print <  - /dev/$scanline[0] + /dev/$scanline[0] $scanline[1] END ; @@ -206,9 +206,11 @@ END $size = int($partitionline[1] / 1024); print < - /dev/$partitionline[0] + UUID=$partitionline[2] + + /dev/$partitionline[0] $Lang::tr{'size'} $size MB - diff --git a/html/cgi-bin/pakfire.cgi b/html/cgi-bin/pakfire.cgi old mode 100755 new mode 100644