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
8ecaf5f9
Commit
8ecaf5f9
authored
Sep 23, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
system: kernel modules are static, move them to loader.conf
parent
51e40597
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
55 deletions
+40
-55
system.inc
src/etc/inc/system.inc
+0
-51
rc.bootup
src/etc/rc.bootup
+0
-3
00-banner
src/etc/rc.loader.d/00-banner
+1
-1
20-modules
src/etc/rc.loader.d/20-modules
+39
-0
No files found.
src/etc/inc/system.inc
View file @
8ecaf5f9
...
@@ -1820,57 +1820,6 @@ function get_possible_traffic_source_addresses($include_ipv6_link_local=false) {
...
@@ -1820,57 +1820,6 @@ function get_possible_traffic_source_addresses($include_ipv6_link_local=false) {
return
$sourceips
;
return
$sourceips
;
}
}
function
load_kernel_module
()
{
$mods
=
array
(
'carp'
,
'if_bridge'
,
/*
* The netgraph(4) framework is loaded here
* for backwards compat with the pre-16.7
* kernel configuration that compiled all of
* these modules into the kernel. This list
* needs further pruning and probing, it's
* possible we do not need frame relay anymore.
*/
'netgraph'
,
'ng_UI'
,
'ng_async'
,
'ng_bpf'
,
'ng_bridge'
,
'ng_car'
,
'ng_cisco'
,
'ng_deflate'
,
'ng_echo'
,
'ng_eiface'
,
'ng_ether'
,
'ng_frame_relay'
,
'ng_hole'
,
'ng_iface'
,
'ng_ksocket'
,
'ng_l2tp'
,
'ng_lmi'
,
'ng_mppc'
,
'ng_one2many'
,
'ng_pipe'
,
'ng_ppp'
,
'ng_pppoe'
,
'ng_pptpgre'
,
'ng_pred1'
,
'ng_rfc1490'
,
'ng_socket'
,
'ng_tcpmss'
,
'ng_tee'
,
'ng_tty'
,
'ng_vjc'
,
'ng_vlan'
,
);
foreach
(
$mods
as
$mod
)
{
mwexecf
(
'/sbin/kldload %s'
,
$mod
);
}
}
function
load_crypto_module
()
function
load_crypto_module
()
{
{
global
$config
;
global
$config
;
...
...
src/etc/rc.bootup
View file @
8ecaf5f9
...
@@ -143,9 +143,6 @@ if (is_interface_mismatch()) {
...
@@ -143,9 +143,6 @@ if (is_interface_mismatch()) {
while
(
!
set_networking_interfaces_ports
(
true
));
while
(
!
set_networking_interfaces_ports
(
true
));
}
}
/* load extra modules not in GENERIC */
load_kernel_module
();
/* enable optional crypto modules */
/* enable optional crypto modules */
load_crypto_module
();
load_crypto_module
();
...
...
src/etc/rc.loader.d/00-banner
View file @
8ecaf5f9
##############################################################
##############################################################
# This file was auto-generated using the rc.loader facility. #
# This file was auto-generated using the rc.loader facility. #
# In order to deploy a custom change to this installation, #
# In order to deploy a custom change to this installation, #
# please use /boot/loader.conf.local as it is not
written.
#
# please use /boot/loader.conf.local as it is not
rewritten.
#
##############################################################
##############################################################
src/etc/rc.loader.d/20-modules
0 → 100644
View file @
8ecaf5f9
carp_load="YES"
if_bridge_load="YES"
# The netgraph(4) framework is loaded here
# for backwards compat with the pre-16.7
# kernel configuration that compiled all of
# these modules into the kernel. This list
# needs further pruning and probing, it's
# possible we do not need frame relay anymore.
netgraph_load="YES"
ng_UI_load="YES"
ng_async_load="YES"
ng_bpf_load="YES"
ng_bridge_load="YES"
ng_car_load="YES"
ng_cisco_load="YES"
ng_deflate_load="YES"
ng_echo_load="YES"
ng_eiface_load="YES"
ng_ether_load="YES"
ng_frame_relay_load="YES"
ng_hole_load="YES"
ng_iface_load="YES"
ng_ksocket_load="YES"
ng_l2tp_load="YES"
ng_lmi_load="YES"
ng_mppc_load="YES"
ng_one2many_load="YES"
ng_pipe_load="YES"
ng_ppp_load="YES"
ng_pppoe_load="YES"
ng_pptpgre_load="YES"
ng_pred1_load="YES"
ng_rfc1490_load="YES"
ng_socket_load="YES"
ng_tcpmss_load="YES"
ng_tee_load="YES"
ng_tty_load="YES"
ng_vjc_load="YES"
ng_vlan_load="YES"
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