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
3983919a
Commit
3983919a
authored
Nov 29, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interfaces: slurp wlan devices into available devs
This is required for FreeBSD 11.0.
parent
ae4e38bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
interfaces.lib.inc
src/etc/inc/interfaces.lib.inc
+11
-0
No files found.
src/etc/inc/interfaces.lib.inc
View file @
3983919a
...
@@ -28,9 +28,16 @@
...
@@ -28,9 +28,16 @@
function
legacy_interface_listget
(
$flag
=
''
)
function
legacy_interface_listget
(
$flag
=
''
)
{
{
$cmd_wlan
=
'sysctl -n net.wlan.devices'
;
$cmd
=
'/sbin/ifconfig -l'
;
$cmd
=
'/sbin/ifconfig -l'
;
$ifs_wlan
=
null
;
$ifs
=
null
;
$ifs
=
null
;
exec
(
$cmd_wlan
.
' 2>&1'
,
$out_wlan
,
$ret_wlan
);
if
(
!
$ret_wlan
&&
isset
(
$out_wlan
[
0
]))
{
$ifs_wlan
=
explode
(
' '
,
$out_wlan
[
0
]);
}
if
(
$flag
===
'up'
)
{
if
(
$flag
===
'up'
)
{
$cmd
.=
'u'
;
$cmd
.=
'u'
;
}
else
if
(
$flag
===
'down'
)
{
}
else
if
(
$flag
===
'down'
)
{
...
@@ -47,6 +54,10 @@ function legacy_interface_listget($flag = '')
...
@@ -47,6 +54,10 @@ function legacy_interface_listget($flag = '')
$ifs
=
explode
(
' '
,
$out
[
0
]);
$ifs
=
explode
(
' '
,
$out
[
0
]);
}
}
if
(
$ifs_wlan
!=
null
)
{
$ifs
=
array_merge
(
$ifs
,
$ifs_wlan
);
}
return
(
$ifs
);
return
(
$ifs
);
}
}
...
...
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