summaryrefslogtreecommitdiffstats
path: root/.local/bin/hddumnt
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/hddumnt')
-rwxr-xr-x.local/bin/hddumnt12
1 files changed, 6 insertions, 6 deletions
diff --git a/.local/bin/hddumnt b/.local/bin/hddumnt
index 9a5319b..deba4ed 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
- notify-send -u critical 'exthdd' " failed to dismount <b>$mountpoint</b>"
+ herbe " failed to dismount $mountpoint"
fi
if ! doas cryptsetup close "$devname"; then
- notify-send -u critical 'exthdd' " failed to close crypt dev <b>$devname</b>"
+ herbe " failed to close crypt dev $devname"
fi
rmdir "$mountpoint"
- notify-send -t 5000 'exthdd' " crypt dev dismounted from <b>$mountpoint</b>"
+ herbe " crypt dev dismounted from $mountpoint"
;;
mars)
if ! mount | grep -F /dev/da0p1; then
- notify-send -u critical 'fathdd' ' HDD not mounted'
+ herbe ' HDD not mounted'
exit 1
fi
if ! umount /dev/da0p1.eli; then
- notify-send -u critical 'fathdd' ' Failed to dismount HDD'
+ herbe ' failed to dismount hdd'
exit 1
fi
geli detach da0p1.eli
rmdir "$HOME"/hdd
- notify-send -t 5000 'fathdd' ' HDD dismounted from <b>~/hdd</b>'
+ herbe ' hdd dismounted from ~/hdd'
;;
esac