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
00f09981
Commit
00f09981
authored
Jul 22, 2015
by
Ad Schellevis
Committed by
Franco Fichtner
Jul 29, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) remove reload_interfaces_sync and move functionality to rc scripts
parent
e72cb393
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
24 deletions
+10
-24
pfsense-utils.inc
src/etc/inc/pfsense-utils.inc
+0
-22
rc.initial.setports
src/etc/rc.initial.setports
+6
-1
rc.reload_interfaces
src/etc/rc.reload_interfaces
+4
-1
No files found.
src/etc/inc/pfsense-utils.inc
View file @
00f09981
...
...
@@ -285,28 +285,6 @@ function host_firmware_version()
}
/****f* legacy/reload_interfaces_sync
* NAME
* reload_interfaces - reload all interfaces
* INPUTS
* none
* RESULT
* none
******/
function
reload_interfaces_sync
()
{
global
$config
;
/* parse config.xml again */
$config
=
parse_config
();
/* enable routing */
system_routing_enable
();
/* set up interfaces */
interfaces_configure
();
}
/****f* legacy/reload_all
* NAME
* reload_all - triggers a reload of all settings
...
...
src/etc/rc.initial.setports
View file @
00f09981
...
...
@@ -37,10 +37,15 @@ require_once("ipsec.inc");
require_once
(
"vpn.inc"
);
require_once
(
"captiveportal.inc"
);
require_once
(
"rrd.inc"
);
require_once
(
"system.inc"
);
require_once
(
"interfaces.inc"
);
if
(
set_networking_interfaces_ports
())
{
echo
"Reloading interfaces..."
;
reload_interfaces_sync
();
global
$config
;
$config
=
parse_config
();
system_routing_enable
();
interfaces_configure
();
echo
"done.
\n
"
;
enable_rrd_graphing
();
}
src/etc/rc.reload_interfaces
View file @
00f09981
...
...
@@ -34,8 +34,11 @@ require_once("util.inc");
require_once
(
"openvpn.inc"
);
require_once
(
"vpn.inc"
);
require_once
(
"captiveportal.inc"
);
require_once
(
"system.inc"
);
require_once
(
"interfaces.inc"
);
reload_interfaces_sync
();
system_routing_enable
();
interfaces_configure
();
filter_configure_sync
();
/* XXX: needs fixing */
//ovpn_config_server("pfreload");
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