fix ykfde
This commit is contained in:
parent
12c05e146c
commit
f0493aa05d
1 changed files with 4 additions and 0 deletions
|
|
@ -28,6 +28,10 @@ while [ "$(ykinfo -q -"$YKFDE_SLOT")" != 1 ]
|
|||
do
|
||||
done
|
||||
|
||||
rbtohex() {
|
||||
( od -An -vtx1 | tr -d ' \n' )
|
||||
}
|
||||
|
||||
YKFDE_SALT="$(dd if=/dev/random bs=1 count=$YKFDE_SALT_LENGTH 2>/dev/null | rbtohex)"
|
||||
if [ -f "$YKFDE_STORAGE" ]; then
|
||||
YKFDE_SALT="$(head -1 $YKFDE_STORAGE)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue