summaryrefslogtreecommitdiffstats
path: root/.local/bin/hddumnt
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-10-01 22:33:48 +0200
committerjoe <rbo@gmx.us>2025-10-01 22:33:48 +0200
commit8854fa0f8a831264ed815b3615038dec89c6f632 (patch)
treecb0eda5ade37b16adb72ee084e20fe284b2c90a1 /.local/bin/hddumnt
parentup (diff)
downloaddotfiles-bsd-8854fa0f8a831264ed815b3615038dec89c6f632.tar.gz
dotfiles-bsd-8854fa0f8a831264ed815b3615038dec89c6f632.tar.bz2
dotfiles-bsd-8854fa0f8a831264ed815b3615038dec89c6f632.tar.xz
dotfiles-bsd-8854fa0f8a831264ed815b3615038dec89c6f632.tar.zst
dotfiles-bsd-8854fa0f8a831264ed815b3615038dec89c6f632.zip
up
Diffstat (limited to '')
-rwxr-xr-x.local/bin/hddumnt12
1 files changed, 6 insertions, 6 deletions
diff --git a/.local/bin/hddumnt b/.local/bin/hddumnt
index deba4ed..1b5da66 100755
--- a/.local/bin/hddumnt
+++ b/.local/bin/hddumnt
@@ -6,25 +6,25 @@ mountpoint="$HOME/$devname"
case "$(hostname -s)" in
mother|po-rbo)
if ! doas umount "$mountpoint"; then
- herbe " failed to dismount $mountpoint"
+ herbe " failed to dismount $mountpoint" &
fi
if ! doas cryptsetup close "$devname"; then
- herbe " failed to close crypt dev $devname"
+ herbe " failed to close crypt dev $devname" &
fi
rmdir "$mountpoint"
- herbe " crypt dev dismounted from $mountpoint"
+ herbe " crypt dev dismounted from $mountpoint" &
;;
mars)
if ! mount | grep -F /dev/da0p1; then
- herbe ' HDD not mounted'
+ herbe ' HDD not mounted' &
exit 1
fi
if ! umount /dev/da0p1.eli; then
- herbe ' failed to dismount hdd'
+ herbe ' failed to dismount hdd' &
exit 1
fi
geli detach da0p1.eli
rmdir "$HOME"/hdd
- herbe ' hdd dismounted from ~/hdd'
+ herbe ' hdd dismounted from ~/hdd' &
;;
esac