Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
03e2bd7e
Commit
03e2bd7e
authored
Oct 14, 2013
by
Leigh B Stoller
Browse files
Minot clean to avoid warnings in containers.
parent
9ff27b0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/linux/liblocsetup.pm
View file @
03e2bd7e
...
...
@@ -643,6 +643,10 @@ sub os_ifconfig_line($$$$$$$$;$$$)
#
# Need to check units on the speed. Just in case.
#
if
(
!
defined
(
$speed
))
{
warn
("
*** No speed defined, default to 100Mbps
\n
");
$speed
=
100
;
}
if
(
$speed
=~
/(\d*)([A-Za-z]*)/
)
{
if
(
$
2
eq
"
Mbps
")
{
$speed
=
$
1
;
...
...
@@ -676,6 +680,10 @@ sub os_ifconfig_line($$$$$$$$;$$$)
$media
=
$IFC_100MBS
;
}
}
if
(
!
defined
(
$duplex
))
{
warn
("
*** No duplex defined, default to full
\n
");
$duplex
=
"
full
";
}
if
(
$duplex
eq
"
full
")
{
$media
=
"
$media
-
$IFC_FDUPLEX
";
}
...
...
Write
Preview
Supports
Markdown
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