Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
c8bc87f6
Commit
c8bc87f6
authored
Jul 02, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: remove stale shaper mentions
parent
cca7eda6
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
37 deletions
+0
-37
upgrade_config.inc
src/etc/inc/upgrade_config.inc
+0
-31
rc.filter_synchronize
src/etc/rc.filter_synchronize
+0
-2
rc.initial.setlanip
src/etc/rc.initial.setlanip
+0
-2
diag_backup.php
src/www/diag_backup.php
+0
-2
No files found.
src/etc/inc/upgrade_config.inc
View file @
c8bc87f6
...
...
@@ -281,13 +281,10 @@ function upgrade_015_to_016() {
function
upgrade_016_to_017
()
{
global
$config
;
/* wipe previous shaper configuration */
unset
(
$config
[
'shaper'
][
'queue'
]);
unset
(
$config
[
'shaper'
][
'rule'
]);
unset
(
$config
[
'interfaces'
][
'wan'
][
'bandwidth'
]);
unset
(
$config
[
'interfaces'
][
'wan'
][
'bandwidthtype'
]);
unset
(
$config
[
'interfaces'
][
'lan'
][
'bandwidth'
]);
unset
(
$config
[
'interfaces'
][
'lan'
][
'bandwidthtype'
]);
$config
[
'shaper'
][
'enable'
]
=
FALSE
;
}
...
...
@@ -365,30 +362,12 @@ function upgrade_019_to_020() {
}
}
function
upgrade_020_to_021
()
{
global
$config
;
/* shaper scheduler moved */
if
(
isset
(
$config
[
'system'
][
'schedulertype'
]))
{
$config
[
'shaper'
][
'schedulertype'
]
=
$config
[
'system'
][
'schedulertype'
];
unset
(
$config
[
'system'
][
'schedulertype'
]);
}
}
function
upgrade_021_to_022
()
{
global
$config
;
/* move gateway to wan interface */
$config
[
'interfaces'
][
'wan'
][
'gateway'
]
=
$config
[
'system'
][
'gateway'
];
}
function
upgrade_022_to_023
()
{
global
$config
;
if
(
isset
(
$config
[
'shaper'
]))
{
/* wipe previous shaper configuration */
unset
(
$config
[
'shaper'
]);
}
}
function
upgrade_024_to_025
()
{
global
$config
;
$config
[
'interfaces'
][
'wan'
][
'use_rrd_gateway'
]
=
$config
[
'system'
][
'use_rrd_gateway'
];
...
...
@@ -638,16 +617,6 @@ function upgrade_040_to_041() {
}
}
function
upgrade_041_to_042
()
{
global
$config
;
if
(
isset
(
$config
[
'shaper'
]))
unset
(
$config
[
'shaper'
]);
if
(
isset
(
$config
[
'ezshaper'
]))
unset
(
$config
[
'ezshaper'
]);
}
function
upgrade_042_to_043
()
{
global
$config
;
/* migrate old interface gateway to the new gateways config */
...
...
src/etc/rc.filter_synchronize
View file @
c8bc87f6
...
...
@@ -295,8 +295,6 @@ if (is_array($config['hasync'])) {
$config
[
'wol'
]
=
array
();
$sections
[]
=
'wol'
;
}
if
(
$hasync
[
'synchronizetrafficshaper'
]
!=
""
and
is_array
(
$config
[
'shaper'
]))
$sections
[]
=
'shaper'
;
if
(
$hasync
[
'synchronizestaticroutes'
]
!=
""
)
{
if
(
!
is_array
(
$config
[
'staticroutes'
]))
$config
[
'staticroutes'
]
=
array
();
...
...
src/etc/rc.initial.setlanip
View file @
c8bc87f6
...
...
@@ -438,8 +438,6 @@ if(!$config['interfaces']['lan']) {
unset
(
$config
[
'dhcpd'
][
'lan'
]);
if
(
$config
[
'dhcpdv6'
][
'lan'
])
unset
(
$config
[
'dhcpdv6'
][
'lan'
]);
unset
(
$config
[
'shaper'
]);
unset
(
$config
[
'ezshaper'
]);
unset
(
$config
[
'nat'
]);
if
(
!
$dry_run
)
{
system
(
"rm /var/dhcpd/var/db/* >/dev/null 2>/dev/null"
);
...
...
src/www/diag_backup.php
View file @
c8bc87f6
...
...
@@ -154,7 +154,6 @@ function spit_out_select_items($name, $showall) {
"staticroutes"
=>
gettext
(
"Static routes"
),
"sysctl"
=>
gettext
(
"System tunables"
),
"snmpd"
=>
gettext
(
"SNMP Server"
),
"shaper"
=>
gettext
(
"Traffic Shaper"
),
"vlans"
=>
gettext
(
"VLANS"
),
"wol"
=>
gettext
(
"Wake on LAN"
)
);
...
...
@@ -342,7 +341,6 @@ if ($_POST) {
if
(
$m0n0wall_upgrade
==
true
)
{
if
(
$config
[
'system'
][
'gateway'
]
<>
""
)
$config
[
'interfaces'
][
'wan'
][
'gateway'
]
=
$config
[
'system'
][
'gateway'
];
unset
(
$config
[
'shaper'
]);
/* optional if list */
$ifdescrs
=
get_configured_interface_list
(
true
,
true
);
/* remove special characters from interface descriptions */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment