aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-02-03 10:33:07 (GMT)
committerLukas Fleischer <archlinux@cryptocrack.de>2012-02-03 12:58:15 (GMT)
commit6f171422cbb1c48da3f1f440148e163af2e2e635 (patch)
treedc729e0d756a79568d271df815077b415bec1ac2 /rc.sysinit
parente88c1e1781f453db2de6ea46cc574c237c042a6a (diff)
downloadinitscripts-6f171422cbb1c48da3f1f440148e163af2e2e635.tar.xz
rc.sysinit: Remove redundant command substitution2012.02.1
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>
Diffstat (limited to 'rc.sysinit')
-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