Delete 'freenas geli unlock.sh'

This commit is contained in:
2020-01-09 15:08:27 -05:00
parent 4d70c0f871
commit 47eac87bd0

View File

@@ -1,14 +0,0 @@
#/bin/bash
#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
for disk in /dev/gptid/*; do
geli attach -p -k ${key} ${disk}
done
done