diff options
author | Joe <rbo@gmx.us> | 2023-12-31 12:49:01 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2023-12-31 12:49:01 +0100 |
commit | 764bac8d97bdac4610f216347f75afa79abd26c7 (patch) | |
tree | 6de098bc2cc0845d88508de6cb6d6d05448701c1 /.local | |
parent | fsyh (diff) | |
download | dotfiles-bsd-764bac8d97bdac4610f216347f75afa79abd26c7.tar.gz dotfiles-bsd-764bac8d97bdac4610f216347f75afa79abd26c7.tar.bz2 dotfiles-bsd-764bac8d97bdac4610f216347f75afa79abd26c7.tar.xz dotfiles-bsd-764bac8d97bdac4610f216347f75afa79abd26c7.tar.zst dotfiles-bsd-764bac8d97bdac4610f216347f75afa79abd26c7.zip |
up
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/hddmnt | 6 | ||||
-rwxr-xr-x | .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 <b>$dev</b>" 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 <b>$dev</b>" exit 1 fi - notify-send -t 5000 'exthdd' " crypt dev mounted to $mountpoint" + notify-send -t 5000 'exthdd' " crypt dev mounted to <b>$mountpoint</b>" ;; 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 <b>$mountpoint</b>" 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 <b>$devname</b>" fi rmdir "$mountpoint" - notify-send -t 5000 'exthdd' " crypt dev dismounted from $mountpoint" + notify-send -t 5000 'exthdd' " crypt dev dismounted from <b>$mountpoint</b>" ;; mars) if ! mount | grep -F /dev/da0p1; then |