From b11aa0a8b427923dd19e509f977c37790abb4e79 Mon Sep 17 00:00:00 2001 From: jgaunt Date: Tue, 5 Nov 2019 15:22:05 -0500 Subject: [PATCH] Update 'freenas geli unlock.sh' --- freenas geli unlock.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/freenas geli unlock.sh b/freenas geli unlock.sh index 48adf09..7183a40 100644 --- a/freenas geli unlock.sh +++ b/freenas geli unlock.sh @@ -1,3 +1,11 @@ #/bin/sh -GELI_KEY_LOCATION="/mnt/geli/keys" +#GELI_KEY_LOCATION="/mnt/geli/keys" +GELI_KEY_LOCATION="/data/geli" +ZFS_POOL_NAMES=("media" "data-pool" "temp") +ZFS_MOUNT_POINT="/mnt" + +# loop through the geli keys and try to unlock any partition +for key in GELI_KEY_LOCATION/*; do + echo "$key" +done \ No newline at end of file