diff options
author | Christian Hesse <mail@eworm.de> | 2013-10-01 10:51:54 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-10-01 10:51:54 +0200 |
commit | 6d1ba7f79c28cd3ecadcfe0bd993cbf2e4aae230 (patch) | |
tree | 72930ee1e4a616dff6fe36466b414357dfa218c0 | |
parent | be598301fe099be177acefff54f9db65fe263cc7 (diff) | |
download | mkinitcpio-ykfde-6d1ba7f79c28cd3ecadcfe0bd993cbf2e4aae230.tar.gz mkinitcpio-ykfde-6d1ba7f79c28cd3ecadcfe0bd993cbf2e4aae230.tar.zst |
update warning about slot
-rw-r--r-- | bin/ykfde | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |