From d61c315dd49116d8c3823e48a30924eb8c66c14f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Sun, 18 Jun 2023 21:36:02 +0300 Subject: fix: menublk: same fix another place --- dotfiles/.local/bin/menublk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dotfiles') diff --git a/dotfiles/.local/bin/menublk b/dotfiles/.local/bin/menublk index 5f3be68..0147b31 100755 --- a/dotfiles/.local/bin/menublk +++ b/dotfiles/.local/bin/menublk @@ -78,7 +78,8 @@ mount_dev() { } unmount_dev() { - fstype="$(udevadm info -x /dev/sdd1 | grep FS_TYPE | cut -d '=' -f2)" + part="/dev/$1" + fstype="$(udevadm info -x $part | grep FS_TYPE | cut -d '=' -f2)" if [ "$fstype" = "crypto_LUKS" ]; then volume="/dev/mapper/$(lsblk -r -o NAME "/dev/$1" | tail -n 1)" if udisksctl unmount -b "$volume" 2> $HOME/.cache/udiskerr && udisksctl lock -b "/dev/$1" 2> $HOME/.cache/udiskerr; then -- cgit v1.2.3