summaryrefslogtreecommitdiffstats
path: root/bin/ykfde
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ykfde')
-rw-r--r--bin/ykfde8
1 files changed, 6 insertions, 2 deletions
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