aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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