fix ykfde
This commit is contained in:
@@ -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)"
|
||||||
|
|||||||
Reference in New Issue
Block a user