From 441cf54adb8e1dca13b2701fd28c78c04dca1efc Mon Sep 17 00:00:00 2001 From: JuanJakobo Date: Tue, 26 Sep 2023 11:58:12 +0200 Subject: [PATCH] use eject over umount --- pb.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pb.sh b/pb.sh index f0dbb66..e92337a 100755 --- a/pb.sh +++ b/pb.sh @@ -77,8 +77,8 @@ while getopts ":hclu" o; do ;; u) if mount | grep /mnt/Pocketbook > /dev/null; then - sudo umount /mnt/Pocketbook - echo "Pocketbook umounted" + sudo eject /mnt/Pocketbook + echo "Pocketbook ejected" else echo "/mnt/Pocketbook not mounted." fi