From ad959d636ab1c74a992f363de9b0ed87063b26f0 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 3 Jun 2009 19:33:19 +0200 Subject: off: grep -q --- etc/functions/off | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/functions/off') diff --git a/etc/functions/off b/etc/functions/off index e66ef88..12997f4 100755 --- a/etc/functions/off +++ b/etc/functions/off @@ -69,7 +69,7 @@ fi execute uinit -o text stop-all while read filesystem garbage; do - if [[ $garbage == *[12] ]] && fgrep $filesystem /etc/mtab &> /dev/null; then + if [[ $garbage == *[12] ]] && fgrep -q $filesystem /etc/mtab; then filesystems+=$filesystem fi done < /etc/fstab -- cgit v1.2.3