Update 2025-01-01 10:04 OpenBSD/amd64-t14

This commit is contained in:
c0dev0id
2025-01-01 10:04:08 +01:00
parent 6b2b5ae779
commit 1c9a2b446a
5 changed files with 48 additions and 0 deletions

10
.bin/umount-cryptoffs Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
_dev=${1:-sd3}
doas umount /mnt 2>&1 | grep -q busy && echo "/mnt is busy" && exit 1
_biodev=$(doas bioctl softraid0 | grep -C1 sd3 | grep CRYPTO | awk '{ print $5 }')
if [ -n "$_biodev" ]
then
doas bioctl -d ${_biodev} && echo "bioctl: $_dev detached"
else
echo "bioctl: $_dev: currently not attached"
fi