From: | "Robin H. Johnson (robbat2)" <robbat2@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-apps/cciss_vol_status/files: cciss_vol_status.cron |
Date: | Sat, 04 Feb 2012 22:41:41 |
Message-Id: | 20120204224132.92CCD2004B@flycatcher.gentoo.org |
1 | robbat2 12/02/04 22:41:32 |
2 | |
3 | Modified: cciss_vol_status.cron |
4 | Log: |
5 | Bug #402109: Refactor grep/awk mess with bad linebreak to single awk. |
6 | |
7 | (Portage version: 2.2.0_alpha84/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.2 sys-apps/cciss_vol_status/files/cciss_vol_status.cron |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/cciss_vol_status/files/cciss_vol_status.cron?rev=1.2&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/cciss_vol_status/files/cciss_vol_status.cron?rev=1.2&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/cciss_vol_status/files/cciss_vol_status.cron?r1=1.1&r2=1.2 |
15 | |
16 | Index: cciss_vol_status.cron |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/sys-apps/cciss_vol_status/files/cciss_vol_status.cron,v |
19 | retrieving revision 1.1 |
20 | retrieving revision 1.2 |
21 | diff -p -w -b -B -u -u -r1.1 -r1.2 |
22 | --- cciss_vol_status.cron 27 Jan 2012 13:12:41 -0000 1.1 |
23 | +++ cciss_vol_status.cron 4 Feb 2012 22:41:32 -0000 1.2 |
24 | @@ -5,8 +5,7 @@ test -x /usr/bin/cciss_vol_status || exi |
25 | STATUS=0 |
26 | |
27 | if [ -d /proc/driver/cciss ]; then |
28 | - DEVS=`grep -h 'cciss/c.*d0:' /proc/driver/cciss/cciss* |awk -F: '{print |
29 | -"/dev/" $1}'` |
30 | + DEVS=`awk -F: '/^cciss\/c.*d0/{print "/dev/" $1}' /proc/driver/cciss/cciss*` |
31 | OUTPUT=`/usr/bin/cciss_vol_status $DEVS` |
32 | if [ $? -ne 0 ]; then |
33 | printf "%s\n" "$OUTPUT" |