diff options
author | joe <rbo@gmx.us> | 2025-10-01 18:04:18 +0200 |
---|---|---|
committer | joe <rbo@gmx.us> | 2025-10-01 18:04:18 +0200 |
commit | 74ecc98e528eac979e0820c9fa48955a186c0cc1 (patch) | |
tree | be754babad6341d504daa4fe8c8433ca428fa595 /.local/bin/hddumnt | |
parent | up (diff) | |
download | dotfiles-bsd-74ecc98e528eac979e0820c9fa48955a186c0cc1.tar.gz dotfiles-bsd-74ecc98e528eac979e0820c9fa48955a186c0cc1.tar.bz2 dotfiles-bsd-74ecc98e528eac979e0820c9fa48955a186c0cc1.tar.xz dotfiles-bsd-74ecc98e528eac979e0820c9fa48955a186c0cc1.tar.zst dotfiles-bsd-74ecc98e528eac979e0820c9fa48955a186c0cc1.zip |
up
Diffstat (limited to '')
-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 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 |