summaryrefslogtreecommitdiffstats
path: root/.local/bin/hddmnt
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-10-24 13:54:18 +0200
committerjoe <rbo@gmx.us>2025-10-24 13:54:18 +0200
commite70c72b13177830df833c949dd7833394cbffc4f (patch)
treea642772a23d7fb53da1f14aaa9b624d60cf841f0 /.local/bin/hddmnt
parentup (diff)
downloaddotfiles-bsd-e70c72b13177830df833c949dd7833394cbffc4f.tar.gz
dotfiles-bsd-e70c72b13177830df833c949dd7833394cbffc4f.tar.bz2
dotfiles-bsd-e70c72b13177830df833c949dd7833394cbffc4f.tar.xz
dotfiles-bsd-e70c72b13177830df833c949dd7833394cbffc4f.tar.zst
dotfiles-bsd-e70c72b13177830df833c949dd7833394cbffc4f.zip
removed more icons
Diffstat (limited to '')
-rwxr-xr-x.local/bin/hddmnt16
1 files changed, 8 insertions, 8 deletions
diff --git a/.local/bin/hddmnt b/.local/bin/hddmnt
index c3b73d3..d7115f1 100755
--- a/.local/bin/hddmnt
+++ b/.local/bin/hddmnt
@@ -7,38 +7,38 @@ case "$(hostname -s)" in
mother|po-rbo)
dev=$(find /dev/sd* -type b -exec bash -c 'doas cryptsetup isLuks {} && echo {}' \; | head -n1)
if [ -z "$dev" ]; then
- herbe ' crypt dev not detected' &
+ herbe 'crypt dev not detected' &
exit 1
fi
if ! doas cryptsetup open "$dev" "$devname"; then
- herbe " failed to uncrypt dev $dev" &
+ herbe "failed to uncrypt dev $dev" &
exit 1
fi
mkdir -p "$mountpoint"
if ! doas mount /dev/mapper/"$devname" "$mountpoint"; then
- herbe " failed to mount dev $dev" &
+ herbe "failed to mount dev $dev" &
exit 1
fi
- herbe " crypt dev mounted to $mountpoint" &
+ herbe "crypt dev mounted to $mountpoint" &
;;
mars)
if ! diskinfo da0 >/dev/null; then
- herbe ' HDD not detected' &
+ herbe 'hdd not detected' &
exit 1
fi
if mount | grep -F /dev/da0p1; then
herbe \
- " HDD already mounted to \
+ "hdd already mounted to \
$(mount | grep -F '/dev/da0p1' | awk '{print $3}')"
exit 1
fi
if ! dmenu -m 0 -p 'Enter password: ' -P |
geli attach -k /root/geli_keys/fathdd_ext.key -j - da0p1; then
- herbe ' Failed to mount HDD' &
+ herbe 'failed to mount hdd' &
exit 1
fi
mkdir -p "$HOME"/hdd
mount /dev/da0p1.eli "$HOME"/hdd
- herbe ' HDD mounted to ~/hdd' &
+ herbe 'hdd mounted to ~/hdd' &
;;
esac