From 6e1239795fcc18710398380bd32ec78aa16cd8a0 Mon Sep 17 00:00:00 2001 From: Marc Joliet Date: Sun, 27 Mar 2011 15:45:45 -0500 Subject: remove bashism from ethtool module X-Gentoo-Bug: 360367 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=360367 --- net/ethtool.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3