diff options
Diffstat (limited to '.local/bin/hddumnt')
-rwxr-xr-x | .local/bin/hddumnt | 12 |
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 |