From 6d1ba7f79c28cd3ecadcfe0bd993cbf2e4aae230 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 1 Oct 2013 10:51:54 +0200 Subject: update warning about slot --- bin/ykfde | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/ykfde b/bin/ykfde index c0ce909..c20a6c0 100644 --- a/bin/ykfde +++ b/bin/ykfde @@ -1,5 +1,7 @@ #!/bin/sh +source /etc/ykfde.conf + function help() { echo "usage: ${0} [OPTIONS]" echo @@ -20,11 +22,9 @@ while getopts "12d:hk" opt; do case ${opt} in 1) SLOT="1" - echo "Please update /etc/ykfde.conf if needed!" ;; 2) SLOT="2" - echo "Please update /etc/ykfde.conf if needed!" ;; d) DEVICE="${OPTARG}" @@ -51,6 +51,10 @@ elif ! cryptsetup isLuks "${DEVICE}" 2>/dev/null; then exit 1 fi +if [ "${YKFDE_SLOT}" != "${SLOT}" ]; then + echo "Please update /etc/ykfde.conf to match your slot!" +fi + echo "Please give extra password if you want to activate two factor" echo -n "authentication, just ENTER for none: " stty -echo -- cgit v1.2.3-54-g00ecf