usr/lib/byobu/raid: only match one raid rebuild (the first one)

This commit is contained in:
Dustin Kirkland 2010-12-05 11:11:26 -06:00
commit c84803af14
2 changed files with 3 additions and 3 deletions

4
debian/changelog vendored
View file

@ -1,8 +1,8 @@
byobu (3.15) unreleased; urgency=low
* UNRELEASED
* usr/lib/byobu/raid: only match one raid rebuild (the first one)
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 29 Nov 2010 14:57:14 -0600
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 05 Dec 2010 11:11:06 -0600
byobu (3.14-0ubuntu1) natty; urgency=low

View file

@ -35,7 +35,7 @@ if grep -qs " blocks \[.*_.*\]$" /proc/mdstat; then
fi
if grep -qs \% /proc/mdstat; then
p=$(grep \% /proc/mdstat | sed -e "s/\%.*/%/" -e "s/.* //")
p=$(grep -m1 \% /proc/mdstat | sed -e "s/\%.*/%/" -e "s/.* //")
[ -z "$msg" ] && msg="RAID"
msg="$msg,$p"
fi