mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
Early spring clean: Remove trailing whitespaces, and correct licence headers
Bumping across one of our scripts with very long trailing whitespaces, I thought it might be a good idea to clean these up. Doing so, some missing or inconsistent licence headers were fixed. There is no need in shipping all these files en bloc, as their functionality won't change. Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
This commit is contained in:
@@ -67,7 +67,7 @@ my $extraHead = <<END
|
||||
#zoneconf td.heading {
|
||||
background-color: lightgrey;
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
#zoneconf td.heading.bold::first-line {
|
||||
font-weight: bold;
|
||||
line-height: 1.6;
|
||||
@@ -310,7 +310,7 @@ if ($cgiparams{"ACTION"} eq $Lang::tr{"save"}) {
|
||||
}
|
||||
|
||||
$VALIDATE_nic_check{"VLAN $mac $vlan_tag"} = 1;
|
||||
|
||||
|
||||
# check VLAN tag range: 1..4094 (0, 4095 are reserved)
|
||||
unless (looks_like_number($vlan_tag) && ($vlan_tag >= 1) && ($vlan_tag <= 4094)) {
|
||||
$VALIDATE_error = $Lang::tr{"zoneconf val vlan tag range error"};
|
||||
@@ -507,7 +507,7 @@ END
|
||||
if ($access_selected{"NONE"} eq "") {
|
||||
$highlight = $_;
|
||||
}
|
||||
|
||||
|
||||
print <<END
|
||||
<td class="$highlight">
|
||||
<select name="ACCESS $uc $mac" data-zone="$uc" data-mac="$mac" onchange="highlightAccess(this)">
|
||||
@@ -542,7 +542,7 @@ foreach (@zones) { # load settings and prepare form elements for each zone
|
||||
my $stp_available = $ethsettings{"${uc}_MODE"} eq "bridge"; # STP is only available in bridge mode
|
||||
my $stp_enabled = $ethsettings{"${uc}_STP"} eq "on";
|
||||
my $stp_priority = $ethsettings{"${uc}_STP_PRIORITY"};
|
||||
|
||||
|
||||
# set priority to default value if no numerical value is configured
|
||||
$stp_priority = 32768 unless looks_like_number($stp_priority);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user