summaryrefslogtreecommitdiffstats
path: root/bin/ykfde
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-10-01 10:51:54 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-10-01 10:51:54 +0200
commit6d1ba7f79c28cd3ecadcfe0bd993cbf2e4aae230 (patch)
tree72930ee1e4a616dff6fe36466b414357dfa218c0 /bin/ykfde
parentbe598301fe099be177acefff54f9db65fe263cc7 (diff)
downloadmkinitcpio-ykfde-6d1ba7f79c28cd3ecadcfe0bd993cbf2e4aae230.tar.gz
mkinitcpio-ykfde-6d1ba7f79c28cd3ecadcfe0bd993cbf2e4aae230.tar.zst
update warning about slot
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