mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
remove more bogus logentries.
This commit is contained in:
@@ -152,7 +152,7 @@ print <<END;
|
||||
</tr>
|
||||
<tr>
|
||||
<!-- spacer -->
|
||||
<td colspan="2"> </td>
|
||||
<td colspan="2"><font color='$Header::colourgreen'> </font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2'>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
###############################################################################
|
||||
# #
|
||||
# IPFire.org - A linux based firewall #
|
||||
# Copyright (C) 2005-2010 IPFire Team #
|
||||
# Copyright (C) 2005-2011 IPFire Team <info@ipfire.org> #
|
||||
# #
|
||||
# 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 #
|
||||
@@ -97,7 +97,7 @@ if (-e "/etc/snort/snort.conf") {
|
||||
close(FILE);
|
||||
open(FILE, ">/etc/snort/snort.conf") or die 'Unable to write snort config file.';
|
||||
|
||||
my @rules = `cd /etc/snort/rules/ && ls *.rules`; # With this loop the rule might be display with correct rulepath set
|
||||
my @rules = `cd /etc/snort/rules/ && ls *.rules 2>/dev/null`; # With this loop the rule might be display with correct rulepath set
|
||||
foreach (@rules) {
|
||||
chomp $_;
|
||||
my $temp = join(";",@snortconfig);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
###############################################################################
|
||||
# #
|
||||
# IPFire.org - A linux based firewall #
|
||||
# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
|
||||
# Copyright (C) 2007-2011 Michael Tremer & Christian Schmidt #
|
||||
# #
|
||||
# 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 #
|
||||
@@ -57,12 +57,6 @@ sub refreshpage{&Header::openbox( 'Waiting', 1, "<meta http-equiv='refresh' cont
|
||||
&Header::openpage($Lang::tr{'pakfire configuration'}, 1);
|
||||
&Header::openbigbox('100%', 'left', '', $errormessage);
|
||||
|
||||
# check if reboot is necessary
|
||||
my $reboot = 0;
|
||||
if (`find /var/run/need_reboot 2>/dev/null`) {
|
||||
$reboot = 1;
|
||||
}
|
||||
|
||||
if ($pakfiresettings{'ACTION'} eq 'install'){
|
||||
$pakfiresettings{'INSPAKS'} =~ s/\|/\ /g;
|
||||
if ("$pakfiresettings{'FORCE'}" eq "on") {
|
||||
@@ -236,7 +230,7 @@ my $packages_update_age = &General::age("/opt/pakfire/db/lists/packages_list.db"
|
||||
print <<END;
|
||||
<table width='95%' cellpadding='5' >
|
||||
END
|
||||
if ($reboot == 1) {
|
||||
if ( -e "/var/run/need_reboot") {
|
||||
print "<tr><td align='center' colspan='2'><font color='red'>$Lang::tr{'needreboot'}!</font></td></tr>";
|
||||
print "<tr><td colspan='2'> </font></td></tr>"
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
###############################################################################
|
||||
# #
|
||||
# IPFire.org - A linux based firewall #
|
||||
# Copyright (C) 2005-2010 IPTifre Team #
|
||||
# Copyright (C) 2005-2011 IPFire Team <info@ipfire.org> #
|
||||
# #
|
||||
# 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 #
|
||||
@@ -242,7 +242,7 @@ $selected{'TXPOWER'}{$wlanapsettings{'TXPOWER'}} = "selected='selected'";
|
||||
$selected{'HW_MODE'}{$wlanapsettings{'HW_MODE'}} = "selected='selected'";
|
||||
$selected{'MACMODE'}{$wlanapsettings{'MACMODE'}} = "selected='selected'";
|
||||
|
||||
my @channellist_cmd = `iwlist $wlanapsettings{'INTERFACE'} channel`;
|
||||
my @channellist_cmd = `iwlist $wlanapsettings{'INTERFACE'} channel 2>/dev/null`;
|
||||
# get available channels
|
||||
|
||||
my @temp;
|
||||
@@ -253,7 +253,7 @@ if ( $channel =~ /\d+/ ){push(@temp,$channel);}
|
||||
}
|
||||
my @channellist = @temp;
|
||||
|
||||
my @txpower_cmd = `iwlist $wlanapsettings{'INTERFACE'} txpower`;
|
||||
my @txpower_cmd = `iwlist $wlanapsettings{'INTERFACE'} txpower 2>/dev/null`;
|
||||
# get available channels
|
||||
|
||||
my @temp;
|
||||
|
||||
Reference in New Issue
Block a user