summaryrefslogtreecommitdiff
path: root/etc/functions
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-06-03 19:33:19 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-06-03 19:33:19 +0200
commitad959d636ab1c74a992f363de9b0ed87063b26f0 (patch)
tree08c633d075d2ffa12ea1ebb6584858a27c65398c /etc/functions
parenta0297738de9d1abe9bd92c0e8708f9b49e3a46a2 (diff)
off: grep -q
Diffstat (limited to 'etc/functions')
-rwxr-xr-xetc/functions/off2
1 files changed, 1 insertions, 1 deletions
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