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:
parent
7c1a2defb6
commit
6e1239795f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user