fix ykfde

This commit is contained in:
2023-11-22 21:54:36 +01:00
parent 12c05e146c
commit f0493aa05d

View File

@@ -28,6 +28,10 @@ while [ "$(ykinfo -q -"$YKFDE_SLOT")" != 1 ]
do do
done done
rbtohex() {
( od -An -vtx1 | tr -d ' \n' )
}
YKFDE_SALT="$(dd if=/dev/random bs=1 count=$YKFDE_SALT_LENGTH 2>/dev/null | rbtohex)" YKFDE_SALT="$(dd if=/dev/random bs=1 count=$YKFDE_SALT_LENGTH 2>/dev/null | rbtohex)"
if [ -f "$YKFDE_STORAGE" ]; then if [ -f "$YKFDE_STORAGE" ]; then
YKFDE_SALT="$(head -1 $YKFDE_STORAGE)" YKFDE_SALT="$(head -1 $YKFDE_STORAGE)"