diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2012-02-04 22:41:32 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2012-02-04 22:41:32 +0000 |
commit | c9f7c9f27a928888c7afa5506d9d434021a8b2cd (patch) | |
tree | bed7425dc272e3256f995baa526e237366d1fff8 /sys-apps/cciss_vol_status | |
parent | Marking libdvbpsi-0.2.1 ppc for bug 386701 (diff) | |
download | historical-c9f7c9f27a928888c7afa5506d9d434021a8b2cd.tar.gz historical-c9f7c9f27a928888c7afa5506d9d434021a8b2cd.tar.bz2 historical-c9f7c9f27a928888c7afa5506d9d434021a8b2cd.zip |
Bug #402109: Refactor grep/awk mess with bad linebreak to single awk.
Package-Manager: portage-2.2.0_alpha84/cvs/Linux x86_64
Diffstat (limited to 'sys-apps/cciss_vol_status')
-rw-r--r-- | sys-apps/cciss_vol_status/ChangeLog | 6 | ||||
-rw-r--r-- | sys-apps/cciss_vol_status/files/cciss_vol_status.cron | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/sys-apps/cciss_vol_status/ChangeLog b/sys-apps/cciss_vol_status/ChangeLog index 7e9b28b649d1..6deb5abb2367 100644 --- a/sys-apps/cciss_vol_status/ChangeLog +++ b/sys-apps/cciss_vol_status/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-apps/cciss_vol_status # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/cciss_vol_status/ChangeLog,v 1.9 2012/01/27 13:12:41 chainsaw Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/cciss_vol_status/ChangeLog,v 1.10 2012/02/04 22:41:32 robbat2 Exp $ + + 04 Feb 2012; Robin H. Johnson <robbat2@gentoo.org> + files/cciss_vol_status.cron: + Bug #402109: Refactor grep/awk mess with bad linebreak to single awk. *cciss_vol_status-1.09-r1 (27 Jan 2012) diff --git a/sys-apps/cciss_vol_status/files/cciss_vol_status.cron b/sys-apps/cciss_vol_status/files/cciss_vol_status.cron index 2472137ca70b..8d1175b45678 100644 --- a/sys-apps/cciss_vol_status/files/cciss_vol_status.cron +++ b/sys-apps/cciss_vol_status/files/cciss_vol_status.cron @@ -5,8 +5,7 @@ test -x /usr/bin/cciss_vol_status || exit 0 STATUS=0 if [ -d /proc/driver/cciss ]; then - DEVS=`grep -h 'cciss/c.*d0:' /proc/driver/cciss/cciss* |awk -F: '{print -"/dev/" $1}'` + DEVS=`awk -F: '/^cciss\/c.*d0/{print "/dev/" $1}' /proc/driver/cciss/cciss*` OUTPUT=`/usr/bin/cciss_vol_status $DEVS` if [ $? -ne 0 ]; then printf "%s\n" "$OUTPUT" |