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
d0cec88f
Commit
d0cec88f
authored
Jun 27, 2004
by
Mike Hibler
Browse files
ethtool is in /sbin (not /usr/sbin) in RHL9; check for both paths
parent
6481f6b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
tmcd/linux/liblocsetup.pm
View file @
d0cec88f
...
...
@@ -273,13 +273,20 @@ sub os_ifconfig_line($$$$$$$;$$)
# interface (e1000), and some (eepro100) support the new interface just
# enough that they can report success but not actually do anything. Sweet!
#
if
(
-
e
"
/usr/sbin/ethtool
")
{
my
$ethtool
;
if
(
-
e
"
/sbin/ethtool
")
{
$ethtool
=
"
/sbin/ethtool
";
}
elsif
(
-
e
"
/usr/sbin/ethtool
")
{
$ethtool
=
"
/usr/sbin/ethtool
";
}
if
(
defined
(
$ethtool
))
{
# this seems to work for returning an error on eepro100
$uplines
=
"
if /usr/sbin/ethtool
$iface
>/dev/null 2>&1; then
\n
"
.
"
/usr/sbin/ethtool -s
$iface
autoneg off speed
$speed
duplex
$duplex
\n
"
.
"
else
\n
"
.
"
/sbin/mii-tool --force=
$media
$iface
\n
"
.
"
fi
\n
";
$uplines
=
"
if
$ethtool
$iface
>/dev/null 2>&1; then
\n
"
.
"
$ethtool
-s
$iface
autoneg off speed
$speed
duplex
$duplex
\n
"
.
"
else
\n
"
.
"
/sbin/mii-tool --force=
$media
$iface
\n
"
.
"
fi
\n
";
}
else
{
$uplines
=
"
/sbin/mii-tool --force=
$media
$iface
\n
";
}
...
...
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