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
0df2b39c
Commit
0df2b39c
authored
Dec 03, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rc: more $verbose conversion
(cherry picked from commit
052c9599
)
parent
cf7098d0
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
21 deletions
+22
-21
interfaces.inc
src/etc/inc/interfaces.inc
+6
-7
ipsec.inc
src/etc/inc/ipsec.inc
+1
-1
services.inc
src/etc/inc/services.inc
+2
-2
system.inc
src/etc/inc/system.inc
+11
-3
rc.bootup
src/etc/rc.bootup
+2
-8
No files found.
src/etc/inc/interfaces.inc
View file @
0df2b39c
...
...
@@ -184,20 +184,19 @@ function interface_netgraph_needed($interface)
return
false
;
}
function
interfaces_loopback_configure
()
function
interfaces_loopback_configure
(
$verbose
=
false
)
{
if
(
file_exists
(
"/var/run/booting"
))
{
echo
gettext
(
"Configuring loopback interface..."
);
if
(
$verbose
)
{
echo
'Configuring loopback interface...'
;
flush
();
}
legacy_interface_setaddress
(
'lo0'
,
'127.0.0.1'
);
interfaces_bring_up
(
"lo0"
);
if
(
file_exists
(
"/var/run/booting"
)
)
{
echo
gettext
(
"done."
)
.
"
\n
"
;
if
(
$verbose
)
{
echo
"done.
\n
"
;
}
return
0
;
}
function
interfaces_vlan_configure
(
$realif
=
''
)
...
...
src/etc/inc/ipsec.inc
View file @
0df2b39c
...
...
@@ -1282,7 +1282,7 @@ EOD;
}
if
(
file_exists
(
"/var/run/booting"
))
{
echo
"done
\n
"
;
echo
"done
.
\n
"
;
}
return
count
(
$filterdns_list
);
...
...
src/etc/inc/services.inc
View file @
0df2b39c
...
...
@@ -1415,7 +1415,7 @@ function services_dhcrelay_configure($verbose = false)
}
if
(
$verbose
)
{
echo
"done
\n
"
;
echo
"done
.
\n
"
;
}
}
...
...
@@ -1529,7 +1529,7 @@ function services_dhcrelay6_configure($verbose = false)
}
if
(
$verbose
)
{
echo
"done
\n
"
;
echo
"done
.
\n
"
;
}
}
...
...
src/etc/inc/system.inc
View file @
0df2b39c
...
...
@@ -344,10 +344,15 @@ function get_nameservers()
return
$master_list
;
}
function
system_hosts_generate
()
function
system_hosts_generate
(
$verbose
=
false
)
{
global
$config
;
if
(
$verbose
)
{
echo
'Generating /etc/hosts...'
;
flush
();
}
$syscfg
=
$config
[
'system'
];
$hosts
=
"127.0.0.1
\t
localhost localhost.
{
$syscfg
[
'domain'
]
}
\n
"
;
...
...
@@ -374,6 +379,10 @@ function system_hosts_generate()
dnsmasq_hosts_generate
();
unbound_hosts_generate
();
if
(
$verbose
)
{
echo
"done.
\n
"
;
}
}
function
system_hostname_configure
(
$verbose
=
false
)
...
...
@@ -1764,8 +1773,7 @@ function system_login_configure($verbose = false)
fclose
(
$fd
);
if
(
$verbose
)
{
echo
"done
\n
"
;
flush
();
echo
"done.
\n
"
;
}
/* force init(8) to reload /etc/ttys */
...
...
src/etc/rc.bootup
View file @
0df2b39c
...
...
@@ -100,14 +100,8 @@ system_sysctl_configure(true);
system_timezone_configure
(
true
);
system_firmware_configure
(
true
);
system_hostname_configure
(
true
);
/* make hosts file */
system_hosts_generate
();
/* configure loopback interface */
interfaces_loopback_configure
();
/* start syslogd */
system_hosts_generate
(
true
);
interfaces_loopback_configure
(
true
);
system_syslogd_start
(
true
);
/* set up interfaces */
...
...
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