From 764bac8d97bdac4610f216347f75afa79abd26c7 Mon Sep 17 00:00:00 2001 From: Joe Date: Sun, 31 Dec 2023 12:49:01 +0100 Subject: up --- .local/bin/hddmnt | 6 +++--- .local/bin/hddumnt | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.local/bin/hddmnt b/.local/bin/hddmnt index 33d0ebf..8ede464 100755 --- a/.local/bin/hddmnt +++ b/.local/bin/hddmnt @@ -11,15 +11,15 @@ case "$(hostname -s)" in exit 1 fi if ! doas cryptsetup open "$dev" "$devname"; then - notify-send -u critical 'exthdd' " failed to uncrypt dev $dev" + notify-send -u critical 'exthdd' " failed to uncrypt dev $dev" exit 1 fi mkdir -p "$mountpoint" if ! doas mount /dev/mapper/"$devname" "$mountpoint"; then - notify-send -u critical 'exthdd' " failed to mount dev $dev" + notify-send -u critical 'exthdd' " failed to mount dev $dev" exit 1 fi - notify-send -t 5000 'exthdd' " crypt dev mounted to $mountpoint" + notify-send -t 5000 'exthdd' " crypt dev mounted to $mountpoint" ;; mars) if ! diskinfo da0 >/dev/null; then diff --git a/.local/bin/hddumnt b/.local/bin/hddumnt index 75c6570..9a5319b 100755 --- a/.local/bin/hddumnt +++ b/.local/bin/hddumnt @@ -6,13 +6,13 @@ mountpoint="$HOME/$devname" case "$(hostname -s)" in mother|po-rbo) if ! doas umount "$mountpoint"; then - notify-send -u critical 'exthdd' " failed to dismount $mountpoint" + notify-send -u critical 'exthdd' " failed to dismount $mountpoint" fi if ! doas cryptsetup close "$devname"; then - notify-send -u critical 'exthdd' " failed to close crypt dev $devname" + notify-send -u critical 'exthdd' " failed to close crypt dev $devname" fi rmdir "$mountpoint" - notify-send -t 5000 'exthdd' " crypt dev dismounted from $mountpoint" + notify-send -t 5000 'exthdd' " crypt dev dismounted from $mountpoint" ;; mars) if ! mount | grep -F /dev/da0p1; then -- cgit v1.2.3