From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-apps/debianutils/files: debianutils-2.28.2-mkboot-quiet.patch |
Date: | Mon, 04 Feb 2008 22:12:56 |
Message-Id: | E1JM9Yb-0006ow-74@stork.gentoo.org |
1 | vapier 08/02/04 22:12:53 |
2 | |
3 | Added: debianutils-2.28.2-mkboot-quiet.patch |
4 | Log: |
5 | Send which error output to /dev/null. |
6 | (Portage version: 2.1.4.1) |
7 | |
8 | Revision Changes Path |
9 | 1.1 sys-apps/debianutils/files/debianutils-2.28.2-mkboot-quiet.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/debianutils/files/debianutils-2.28.2-mkboot-quiet.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/debianutils/files/debianutils-2.28.2-mkboot-quiet.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: debianutils-2.28.2-mkboot-quiet.patch |
15 | =================================================================== |
16 | http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=438443 |
17 | |
18 | --- mkboot |
19 | +++ mkboot |
20 | @@ -20,7 +20,7 @@ |
21 | if mount | grep -q "^proc " && [ -e /proc/cmdline ]; then |
22 | rootpart=$(grep -o "root=[^ ]*" /proc/cmdline | cut -d \= -f 2) |
23 | else |
24 | - which rdev >/dev/null && rootpart=$(rdev | cut -d ' ' -f 1) |
25 | + which rdev >/dev/null 2>&1 && rootpart=$(rdev | cut -d ' ' -f 1) |
26 | fi |
27 | # temporary directory |
28 | tmpdir=${TMPDIR-/tmp} |
29 | @@ -49,7 +49,7 @@ |
30 | |
31 | # check whether GRUB is installed |
32 | grubcheck () { |
33 | - if ! which update-grub >/dev/null && ! which grub-install >/dev/null; then return 1; fi |
34 | + if ! which update-grub >/dev/null 2>&1 && ! which grub-install >/dev/null 2>&1 ; then return 1; fi |
35 | } |
36 | |
37 | # check whether Yaboot is installed |
38 | |
39 | |
40 | |
41 | -- |
42 | gentoo-commits@l.g.o mailing list |