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
4ad78901
Commit
4ad78901
authored
Dec 17, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rc: start loopback earlier, omits manual installer glue
parent
1d325312
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
interfaces.inc
src/etc/inc/interfaces.inc
+6
-1
rc.bootup
src/etc/rc.bootup
+3
-1
rc.installer
src/etc/rc.installer
+0
-3
No files found.
src/etc/inc/interfaces.inc
View file @
4ad78901
...
@@ -127,8 +127,13 @@ function interfaces_loopback_configure($verbose = false)
...
@@ -127,8 +127,13 @@ function interfaces_loopback_configure($verbose = false)
flush
();
flush
();
}
}
/*
* This function is called very early, we must
* make sure the config is not required.
*/
legacy_interface_setaddress
(
'lo0'
,
'127.0.0.1'
);
legacy_interface_setaddress
(
'lo0'
,
'127.0.0.1'
);
interfaces_bring_up
(
"lo0"
);
legacy_interface_flags
(
'lo0'
,
'up'
);
if
(
$verbose
)
{
if
(
$verbose
)
{
echo
"done.
\n
"
;
echo
"done.
\n
"
;
...
...
src/etc/rc.bootup
View file @
4ad78901
...
@@ -67,6 +67,9 @@ system_console_mute();
...
@@ -67,6 +67,9 @@ system_console_mute();
system_devd_configure
(
true
);
system_devd_configure
(
true
);
system_login_configure
(
true
);
system_login_configure
(
true
);
/* loopback device is required early for syslog and the installer */
interfaces_loopback_configure
(
true
);
$setup_installer
=
is_install_media
();
$setup_installer
=
is_install_media
();
if
(
$setup_installer
)
{
if
(
$setup_installer
)
{
echo
'Press any key to start the early installer: '
;
echo
'Press any key to start the early installer: '
;
...
@@ -108,7 +111,6 @@ system_timezone_configure(true);
...
@@ -108,7 +111,6 @@ system_timezone_configure(true);
system_firmware_configure
(
true
);
system_firmware_configure
(
true
);
system_hostname_configure
(
true
);
system_hostname_configure
(
true
);
system_hosts_generate
(
true
);
system_hosts_generate
(
true
);
interfaces_loopback_configure
(
true
);
system_syslogd_start
(
true
);
system_syslogd_start
(
true
);
openvpn_prepare_all
(
true
);
openvpn_prepare_all
(
true
);
...
...
src/etc/rc.installer
View file @
4ad78901
...
@@ -26,9 +26,6 @@
...
@@ -26,9 +26,6 @@
sysctl kern.geom.debugflags
=
16
>
/dev/null
sysctl kern.geom.debugflags
=
16
>
/dev/null
sysctl net.link.ether.inet.log_arp_wrong_iface
=
0
>
/dev/null
sysctl net.link.ether.inet.log_arp_wrong_iface
=
0
>
/dev/null
ifconfig lo0 127.0.0.1/24
ifconfig lo0 up
rm
-f
/tmp/install_complete
rm
-f
/tmp/install_complete
# Start the backend in the background (must mute all the ouput)
# Start the backend in the background (must mute all the ouput)
...
...
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