aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2011-01-27 13:54:44 +0100
committerThomas Bächler <thomas@archlinux.org>2011-01-27 13:54:44 +0100
commitc1f38e1186a60a2d63947881d2879c22fc375da4 (patch)
tree087dfa40419ccded1765324b40e0719e8cdf2a79 /rc.sysinit
parent39c1bf5ea0a3bce6ffcd8af79f0b924732a5b509 (diff)
downloadinitscripts-c1f38e1186a60a2d63947881d2879c22fc375da4.tar.xz
Suppress the output of cryptsetup isLuks.
No idea why it would output anything, but it does in case of failure. Suppress the standard error.
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 93f4261..d562e36 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -133,7 +133,7 @@ if [[ -f /etc/crypttab && $CS ]]; then
# Ordering of options is different if you are using LUKS vs. not.
# Use ugly swizzling to deal with it.
# isLuks only gives an exit code but no output to stdout or stderr.
- if $CS isLuks "$2"; then
+ if $CS isLuks "$2" 2>/dev/null; then
open=luksOpen
a="$2"
b="$1"