remove bashism from ethtool module

X-Gentoo-Bug: 360367
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=360367
This commit is contained in:
Marc Joliet 2011-03-27 15:45:45 -05:00 committed by William Hubbs
parent 7c1a2defb6
commit 6e1239795f

View File

@ -25,7 +25,7 @@ ethtool_pre_start() {
eindent eindent
for opt in ${order} ; do for opt in ${order} ; do
local args local args
eval args=\$ethtool_${opt//-/_}_${IFVAR} eval args=\$ethtool_$(echo $opt | tr - _)_${IFVAR}
# Skip everything if no arguments # Skip everything if no arguments
[ -z "${args}" ] && continue [ -z "${args}" ] && continue