summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-02-03 11:33:07 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2012-02-03 13:58:15 +0100
commit6f171422cbb1c48da3f1f440148e163af2e2e635 (patch)
treedc729e0d756a79568d271df815077b415bec1ac2
parente88c1e1781f453db2de6ea46cc574c237c042a6a (diff)
rc.sysinit: Remove redundant command substitution
Invoke `grep -q` and check its return value instead of checking whether grep(1) produces non-empty output. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rwxr-xr-xrc.sysinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 458239e..88c72a0 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -39,7 +39,7 @@ if [[ ! -a /usr/lib ]] ; then
printf "${C_FAIL}/usr is not mounted. This is not supported.${C_OTHER}\n"
fi
-if [[ ! $(grep devtmpfs /proc/filesystems) ]] ; then
+if ! grep -q devtmpfs /proc/filesystems; then
printf "${C_FAIL}Your kernel does not have devtmpfs support. This is not supported.${C_OTHER}\n"
fi