From c1f38e1186a60a2d63947881d2879c22fc375da4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20B=C3=A4chler?= Date: Thu, 27 Jan 2011 13:54:44 +0100 Subject: Suppress the output of cryptsetup isLuks. No idea why it would output anything, but it does in case of failure. Suppress the standard error. --- rc.sysinit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3