Merge branch 'master' into core115

This commit is contained in:
Arne Fitzenreiter
2017-10-18 21:20:23 +02:00
3 changed files with 9 additions and 3 deletions

View File

@@ -75,7 +75,7 @@ if ( "$ARGV[0]" eq "mount" ) {
if ( ! `/bin/mount | /bin/fgrep $ARGV[1]` ) {
system("/bin/cp -f /etc/fstab $fstab");
system("/bin/fgrep -v $ARGV[1] <$fstab >/etc/fstab");
print "Succesfully umounted $ARGV[1].\n";
print "Successfully umounted $ARGV[1].\n";
exit(0);
} else {
print "Can't umount $ARGV[1].\n";

View File

@@ -1,4 +1,5 @@
etc/system-release
etc/issue
etc/rc.d/init.d/unbound
srv/web/ipfire/cgi-bin/extrahd.cgi
var/ipfire/langs

View File

@@ -48,8 +48,13 @@ my $partitionentry = "";
my $devicefile = "/var/ipfire/extrahd/devices";
my $scanfile = "/var/ipfire/extrahd/scan";
my $partitionsfile = "/var/ipfire/extrahd/partitions";
system("/usr/local/bin/extrahdctrl scanhd ide");
system("/usr/local/bin/extrahdctrl scanhd partitions");
#workaround to suppress a warning when a variable is used only once
my @dummy = ( ${Header::colourgreen}, ${Header::colourred} );
undef (@dummy);
system("/usr/local/bin/extrahdctrl scanhd ide >/dev/null");
system("/usr/local/bin/extrahdctrl scanhd partitions >/dev/null");
&Header::showhttpheaders();