From c84803af142534e09b0736b34924e344a5afb92f Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Sun, 5 Dec 2010 11:11:26 -0600 Subject: [PATCH] usr/lib/byobu/raid: only match one raid rebuild (the first one) --- debian/changelog | 4 ++-- usr/lib/byobu/raid | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 887245c9..90073f98 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Mon, 29 Nov 2010 14:57:14 -0600 + -- Dustin Kirkland Sun, 05 Dec 2010 11:11:06 -0600 byobu (3.14-0ubuntu1) natty; urgency=low diff --git a/usr/lib/byobu/raid b/usr/lib/byobu/raid index 3782f7e0..cf284b54 100755 --- a/usr/lib/byobu/raid +++ b/usr/lib/byobu/raid @@ -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