From 8613a26e8d1d078ebd7e1bdaf4ce36f627299eaa Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 19 Feb 2011 09:30:30 -0500 Subject: [PATCH] rc.sysinit: remove double grep call in cryptsetup logic Signed-off-by: Dave Reisner --- rc.sysinit | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index 44c3eac..9512a26 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -120,7 +120,7 @@ fi activate_vgs # Set up non-root encrypted partition mappings -if [[ -f /etc/crypttab && $CS && -n $(/bin/grep -v ^# /etc/crypttab | /bin/grep -v ^$) ]]; then +if [[ $CS ]] && grep -vq '^[[:space:]]*$\|^[[:space:]]*#' /etc/crypttab 2>/dev/null; then /sbin/modprobe -q dm-crypt 2>/dev/null stat_busy "Unlocking encrypted volumes:" do_unlock() { -- 1.7.4.1