The internal field seperator (IFS) got messed up in commit#
1043bc00e.
While at it, fixed all IFS variables to make it more readable and to
prevent breakage by (automatic) indentation.
This is not (yet) POSIX though, but we are in zsh anyway.
Closes grml/grml#40
eindent
SKIP_CPU_GOVERNOR=1
oldIFS="$IFS"
eindent
SKIP_CPU_GOVERNOR=1
oldIFS="$IFS"
for line in $(grep FATAL "$LOADCPUFREQ" | sed 's/.*FATAL: //; s/ (.*)//') ; do
eerror "$line" ; eend $RC
done
for line in $(grep FATAL "$LOADCPUFREQ" | sed 's/.*FATAL: //; s/ (.*)//') ; do
eerror "$line" ; eend $RC
done
CONTROLS=$(amixer -c $card scontrols | awk -F"Simple mixer control " '{print $2}')
IFSOLD=${IFS:-}
CONTROLS=$(amixer -c $card scontrols | awk -F"Simple mixer control " '{print $2}')
IFSOLD=${IFS:-}
for CONTROL in ${=CONTROLS} ; do
# such devices can not be controlled with amixer ... unmute
[[ "$CONTROL" == *Console* ]] && continue
for CONTROL in ${=CONTROLS} ; do
# such devices can not be controlled with amixer ... unmute
[[ "$CONTROL" == *Console* ]] && continue
einfo "Bootoption swraid found. Searching for software RAID arrays:"
eindent
IFSOLD=${IFS:-}
einfo "Bootoption swraid found. Searching for software RAID arrays:"
eindent
IFSOLD=${IFS:-}
for line in $(mdadm --assemble --scan --auto=yes --symlink=no 2>&1) ; do
case $line in
*'No arrays found'*)
for line in $(mdadm --assemble --scan --auto=yes --symlink=no 2>&1) ; do
case $line in
*'No arrays found'*)
ewarn "No active arrays found" ; eend 0
else
IFSOLD=${IFS:-}
ewarn "No active arrays found" ; eend 0
else
IFSOLD=${IFS:-}
for line in $(grep '^md[0-9]' /proc/mdstat) ; do
einfo "active arrays: $line" ; eend 0
done
for line in $(grep '^md[0-9]' /proc/mdstat) ; do
einfo "active arrays: $line" ; eend 0
done
[ -n "$1" ] || return 1
IFSOLD=${IFS:-}
[ -n "$1" ] || return 1
IFSOLD=${IFS:-}
eindent
for line in $(dmraid $1 ; echo errcode:$?); do
eindent
for line in $(dmraid $1 ; echo errcode:$?); do