aboutsummaryrefslogtreecommitdiff
path: root/net/ethtool.sh
diff options
context:
space:
mode:
authorMarc Joliet <marcec@gmx.de>2011-03-27 15:45:45 -0500
committerWilliam Hubbs <williamh@gentoo.org>2011-03-27 15:45:45 -0500
commit6e1239795fcc18710398380bd32ec78aa16cd8a0 (patch)
tree2742159d05bfaa6436441de854d1eaa84bed966b /net/ethtool.sh
parent7c1a2defb6fdec4190a2256bd023857e30ecb7a7 (diff)
remove bashism from ethtool module
X-Gentoo-Bug: 360367 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=360367
Diffstat (limited to 'net/ethtool.sh')
-rw-r--r--net/ethtool.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ethtool.sh b/net/ethtool.sh
index 64b44a62..8ea1cde7 100644
--- a/net/ethtool.sh
+++ b/net/ethtool.sh
@@ -25,7 +25,7 @@ ethtool_pre_start() {
eindent
for opt in ${order} ; do
local args
- eval args=\$ethtool_${opt//-/_}_${IFVAR}
+ eval args=\$ethtool_$(echo $opt | tr - _)_${IFVAR}
# Skip everything if no arguments
[ -z "${args}" ] && continue