First sync.
This commit is contained in:
11
cto
Executable file
11
cto
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# CryptTab Open
|
||||
|
||||
while read -r NAME DEV KEY OPTS; do
|
||||
if [ -f "${KEY}" ]; then
|
||||
cryptsetup open "${DEV}" "${NAME}" --key-file "${KEY}"
|
||||
else
|
||||
cryptsetup open "${DEV}" "${NAME}"
|
||||
fi
|
||||
done <<< $(grep -v '^#' /etc/crypttab | sed '/^[[:space:]]*$/d' | sed 's/[[:space:]]\{1,\}/\t/g' | sed 's|UUID=|/dev/disk/by-uuid/|g')
|
||||
Reference in New Issue
Block a user