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
32bc30aa
Commit
32bc30aa
authored
May 11, 2017
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rc: further
parent
02194097
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
rc.initial.setlanip
src/etc/rc.initial.setlanip
+5
-2
No files found.
src/etc/rc.initial.setlanip
View file @
32bc30aa
...
@@ -258,6 +258,7 @@ function console_configure_ip_address($version)
...
@@ -258,6 +258,7 @@ function console_configure_ip_address($version)
$intbits
=
''
;
$intbits
=
''
;
$isintdhcp
=
true
;
$isintdhcp
=
true
;
$restart_dhcpd
=
true
;
$restart_dhcpd
=
true
;
echo
"
\n
"
;
}
}
if
(
!
$isintdhcp
)
{
if
(
!
$isintdhcp
)
{
...
@@ -419,6 +420,8 @@ function console_configure_dhcpd($version = 4)
...
@@ -419,6 +420,8 @@ function console_configure_dhcpd($version = 4)
$restart_dhcpd
=
true
;
$restart_dhcpd
=
true
;
}
}
}
}
echo
"
\n
"
;
}
}
console_configure_dhcpd
(
4
);
console_configure_dhcpd
(
4
);
...
@@ -522,10 +525,10 @@ if ($intip != '' || $intip6 != '') {
...
@@ -522,10 +525,10 @@ if ($intip != '' || $intip6 != '') {
echo
"
\n
You can now access the web GUI by opening
\n
the following URL in your web browser:
\n\n
"
;
echo
"
\n
You can now access the web GUI by opening
\n
the following URL in your web browser:
\n\n
"
;
$webuiport
=
!
empty
(
$config
[
'system'
][
'webgui'
][
'port'
])
?
":
{
$config
[
'system'
][
'webgui'
][
'port'
]
}
"
:
''
;
$webuiport
=
!
empty
(
$config
[
'system'
][
'webgui'
][
'port'
])
?
":
{
$config
[
'system'
][
'webgui'
][
'port'
]
}
"
:
''
;
if
(
is_ipaddr
(
$intip
))
{
if
(
is_ipaddr
(
$intip
))
{
echo
"
{
$config
[
'system'
][
'webgui'
][
'protocol'
]
}
://
{
$intip
}{
$webuiport
}
/
\n
"
;
echo
"
{
$config
[
'system'
][
'webgui'
][
'protocol'
]
}
://
{
$intip
}{
$webuiport
}
\n
"
;
}
}
if
(
is_ipaddr
(
$intip6
))
{
if
(
is_ipaddr
(
$intip6
))
{
echo
"
{
$config
[
'system'
][
'webgui'
][
'protocol'
]
}
://[
{
$intip6
}
]
{
$webuiport
}
/
\n
"
;
echo
"
{
$config
[
'system'
][
'webgui'
][
'protocol'
]
}
://[
{
$intip6
}
]
{
$webuiport
}
\n
"
;
}
}
}
}
}
}
...
...
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